Learn Vue | Vue router in simple terms
Vue routing
Vue Router is Vue JS official routing manager. It and Vue JS core deep integration makes it easy to build single page applications. The functions include:
Nested routing / view tablesModular, component-based routing configurationRouting parameters, queries, wildcardsBased on Vue View transition effect of JS transition systemFi ...
Added by phpuser_2000 on Thu, 20 Jan 2022 20:29:02 +0200
Application of closures of JavaScript advanced day34~36-- functions
1. Application of closures: define JS modules
js files with specific functionsEncapsulate all data and functions inside a function (private)Expose only one object or function that contains n methodsThe user of the module only needs to call the method through the exposed object of the module to realize the corresponding function
Me ...
Added by jerrylouise on Thu, 20 Jan 2022 20:09:02 +0200
javascript solution to the loss of precision in addition, subtraction, multiplication and division of decimals
Author: Wu Zhichun
Continued JavaScript digital storage We know why 0.1 + 0.2 ≠ 0.3 and find a problem. Let's solve the problem this time.
Analyze problems
Before solving the problem, let's find out the root cause of the problem. The root of the problem is that the integer is too large; Decimal is because there is an invalid cycle when co ...
Added by peeter_talvistu on Thu, 20 Jan 2022 18:42:26 +0200
[Python crawler advanced learning] - JS reverse hundred examples - Youdao translation interface parameter reverse
Reverse target
Target: Youdao translation interface parametersHome page: Online translation_ YoudaoInterface: https://fanyi.youdao.com/translate_o?smartresult=dict&smartresult=ruleReverse parameters:
Form Data:
salt: 16261583727540sign: 151e4b19b07ae410e0e1861a6706d30cbv: 5b3e307b66a6c075d525ed231dcc8dcd
Reverse process
Pack ...
Added by Cloud9247 on Thu, 20 Jan 2022 18:42:35 +0200
Where does this point? Understand this point
preface
js has flexible this direction and various usage scenarios. Although the concept is basic, it is very important. Many hidden bug s come from it. It is very necessary to understand the direction of this. If you can master this skillfully, the code will be more concise and elegant
Who does this point to?
There is a most popular saying ...
Added by patch2112 on Thu, 20 Jan 2022 15:41:57 +0200
1000 powder! Use three JS make an exclusive 3D Medal 🥇
backgroundThe defense is broken 😭! Suddenly, I found that the number of fans of SegmentFault platform has exceeded 1000. It is the first of my three blog platforms nuggets, blog Garden and SegmentFault to exceed 1000. So I designed and developed this page to commemorate it. Thank you very much for your attention 🙏, In the future, I will pay ...
Added by wrathyimp on Thu, 20 Jan 2022 14:13:55 +0200
Using Vue instances (Global API s)
Overview
Vue.extend(options) // Create a Vue instance by inheriting an option object
Vue.nextTick([callback, context]) // Perform a deferred callback after the next DOM update cycle ends
Vue.set(target, key, value) // Set the properties of the object. If it is a responsive object, it will trigger the view update
Vue.d ...
Added by jefrat72 on Thu, 20 Jan 2022 11:33:10 +0200
Application of Form in data stack: in depth
The theme of this article is a process of understanding and digesting Form forms after they are used in several stacks of products. By introducing some common methods in Form forms, we can understand some design ideas and deepen our pursuit of technology. This paper mainly introduces the creation of Form and the two-way binding of Form (getFiel ...
Added by thors1982 on Thu, 20 Jan 2022 08:40:55 +0200
Nodejs file upload based on express+multer
overview
Image upload is a function often used in web development, and the node community also has relatively perfect support in this regard.
Common open source components include multer and formidable. With the help of these two open source components, you can easily upload pictures.
This paper mainly explains the following contents, and th ...
Added by Sir Mildred Pierce on Thu, 20 Jan 2022 06:24:04 +0200
The front-end JavaScript implements a simple calculator
The front-end uses JavaScript to implement a simple calculator, which is not difficult, but there are some small knowledge that should be paid attention to. It can be regarded as a review of basic knowledge.
subject
To realize a simple calculator, the requirements are as follows:
1. In the division operation, if the divisor is 0, the result i ...
Added by sujithfem on Thu, 20 Jan 2022 03:19:52 +0200