Vue uses mockjs to generate simulation data
Mockjs generates simulation data
When developing the front-end, we need to get the interface of the back end, then call to get the data provided by the back end. But in the actual situation, it is possible that the back-end interface has not been designed, but you want to get the data for testing. What should you do at this time?
At this time ...
Added by brotherhewd on Sat, 19 Feb 2022 20:34:22 +0200
wx tripartite payment + QR code generation
Code example
preface
This paper mainly introduces the internal payment process of wechat applet. However, in fact, wechat applet has certain limitations, that is, the scope of users is limited to the internal ecosystem of the applet. The payment method that is truly extensive, efficient and convenient in life must also be code scanning paymen ...
Added by SteveFrost on Sat, 19 Feb 2022 18:09:26 +0200
Some related configurations of Vue router (notes)
1, Reference CDN to build a simple route
Official website address: https://router.vuejs.org/zh/installation.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"&g ...
Added by crzyman on Sat, 19 Feb 2022 16:56:00 +0200
Use of Vue router and parameter transfer
Use of Vue router router
1, router global configuration
Install routing npm install vue-router
Create router Usually, for projects created with Vue cli, if we don't import router at first, we need to create it manually. At this time, we create router directory in src directory and index in directory JS, as follows:/**
* Router object module
...
Added by Buttero on Sat, 19 Feb 2022 15:32:18 +0200
Vue.js front-end framework: custom instructions
1. Why define custom directives
After studying the Vue front-end framework, we also know many built-in instructions, such as v-for instruction, v-if instruction, v-bind instruction, v-model instruction and so on. However, because these built-in instructions tend to be instrumental, and sometimes it is necessary to implement specific business l ...
Added by dr.maju on Sat, 19 Feb 2022 15:19:47 +0200
vue course expansion -- ie compatibility and ios compatibility of vue
Basic instruction of vue - 1
v-for
The v-for instruction renders a list based on an array, which is similar to the traversal syntax of JavaScript v-for="item in list" list is an array, and item is the array element currently traversed v-for="(item,index) in list" where index is the index of the current cycle, and the subscript start ...
Added by corcode on Sat, 19 Feb 2022 08:10:59 +0200
Understand vuex4 X basic usage and comparison vue3 Difference of X
brief introduction
Vuex is Vue JS application state management mode + library. It acts as a centralized storage for all components in the application, and its rules ensure that the state can only be changed in a predictable way.
In short, it provides a library of state management, and the change of state is predictable.
Status: I person ...
Added by traxy on Sat, 19 Feb 2022 06:11:30 +0200
Vue + spring MVC is developed separately from the front end and back end (making a simple background user management interface)
previously on
The previous section explained how to use oauth2 in the front end, how to modify user status and write authentication logic to adapt to oauth2This section will explain how to make a simple background management page
What is the background management page?
The essence of background management is CRUD of database recordsIt is us ...
Added by mantona on Fri, 18 Feb 2022 19:50:15 +0200
Principle and implementation of Vue router
Today, with the rapid development of the front end, if you can't keep learning all the time, you will be eliminated soon. Share the relevant knowledge of Vue router principle implementation. Make a little progress every day.
1, Vue router Basics
**1,Vue. If the parameter passed in is a parameter of the function: * * directly received by the f ...
Added by dmrn on Fri, 18 Feb 2022 09:31:33 +0200
vue dynamic class, style, filter, calculation attribute, listener summary
1, Virtual DOM: The labels written in the template in the vue file are all templates, which must be processed into virtual DOM objects by vue before they can be rendered and displayed on the real DOM page
2, diff algorithm: used to compare the new virtual DOM with the old virtual dom
1. Root element change → delete and rebuild DOM tree 2 ...
Added by desmi on Fri, 18 Feb 2022 08:53:38 +0200