The choice of Hybrid APP hybrid development mode (7: full version of JSBridge)

preface Reference sources This paper refers to the following sources Design ideas of Hybrid APP architecture marcuswestin/WebViewJavascriptBridge Wedge This paper introduces the complete implementation of JSBridge, including JS part, Android native part and iOS native part JS implementation part explain This is a JSbridge implementati ...

Posted by benyboi on Thu, 09 Jul 2020 09:13:20 -0700

Front end development -- HTML

1, Introduction to front end development As a programmer, if you want to develop a website, its essence is to receive the browser's request and return the data to the socket server, and the returned data format should conform to the rules recognized by the browser. The purpose of the front-end development course is to take you to learn all th ...

Posted by syth04 on Mon, 29 Jun 2020 19:32:41 -0700

Implementation of call,apply,bind and new

call First of all, let's look at the usage of call (a call) call principle: let the previous function execute and change the direction of this. If the first parameter is not passed or is null or undefined, then this is window. If passed, this is the first parameter function fn1(n,m) { console.log('I am fn1',n,m);//I'm fn1 1 2 } ...

Posted by fdost on Mon, 29 Jun 2020 01:20:31 -0700

Chapter 1 JavaScript foundation [cloud smart link]

Chapter 1 JavaScript Basics 1. What is JavaScript? HTML+CSS completes the static page display, but to complete better and more complex user interaction and data interaction and display, you need to use JavaScript. JavaScript is an object-based and event driven scripting language with security performance 2. Features of JavaScript a. You can add ...

Posted by glitch003 on Sat, 27 Jun 2020 22:26:06 -0700

Touch your hand, take you to understand Vue's Computed principle

preface Computed is a very common property configuration in Vue. It can change with the change of dependent properties, which brings us great convenience. So this article will take you to fully understand the internal principle and workflow of computed. Before that, I hope you can have some understanding of the responsive principle, because com ...

Posted by loudrake on Fri, 26 Jun 2020 01:17:48 -0700

JS event, Bom object and Dom object (Le byte Architecture)

If you want to be a good java Architect, here → Le byte free open class (Tencent class) If you need to follow more information, please click on the right side (remember the password: 66) → This is a no return road, there is a risk of baldness, please choose carefully! BOM objects The core object of BOM is window, which represents an i ...

Posted by R_P on Fri, 26 Jun 2020 00:52:21 -0700

Spring boot + websocket to realize real-time chat

Spring boot + websocket for real-time chat Recently, a little time, the last project just used websocket to realize broadcasting messages. Now, I want to sort out some previous codes and share them with you. WebSocket protocol is a new network protocol based on TCP. It realizes full duplex communication between browser and server, which ...

Posted by mady on Thu, 25 Jun 2020 23:14:13 -0700

springMVC exception interceptor file upload

Asynchronous call Send asynchronous requests (review) <a href="javascript:void(0);" id="testAjax">Visit controller</a> <script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script> <script type="text/javascript"> $(function(){ $("#testAjax").click(funct ...

Posted by liquid79 on Thu, 25 Jun 2020 18:21:59 -0700

this points to the end of the problem in JavaScript

this points to the end of the problem in JavaScript Preface 1. On the outermost layer of JS code 2. Method Calls as Objects 3. Call as a normal function 4. Constructor Calls V.Function.prototype.call or Function.prototype.apply call 6. this in arrow functions Preface The this keyword in Javascri ...

Posted by oddyseys on Wed, 24 Jun 2020 17:49:20 -0700

JavaScript branch structure statement

Branch structure statement in JS JS code should be executed from top to bottom Branch structure statement: when a part is executed, select whether to execute a section of code according to the condition Conditional branch statement in JS - if There are four ways to write 1, if branch 1. if state ...

Posted by alecapone on Wed, 24 Jun 2020 00:55:41 -0700