This article is more detailed. It's about the beginning of react project, from the foundation to the actual project. I hope the industry leaders don't laugh at it. How about myself! If there are any mistakes in my study, I can point them out. I can learn from them and correct them. I hope to make progre ...
Added by ttaceman on Sun, 28 Jun 2020 08:03:15 +0300
4. Data request through axios
vue.js ajax is not available by default.
So when using vue, we usually use axios plug-in to realize the data interaction between ajax and back-end server.
Added by akelavlk on Thu, 18 Jun 2020 10:59:19 +0300
Epidemic data map display
The realization of Chinese map
First look at the renderings.
The whole project is completed under the vue framework. After the routing configuration is completed, you can start the map display part. Here I will only show the domestic epidemic part, which I have completed in ...
Added by paulspoon on Sun, 14 Jun 2020 12:26:34 +0300
The calculated function of real-time calculation attributes, real-time calculation attributes, is just the function writing method, and there is no need to declare in data. Some business logic codes can be placed in computed. Remember to return.
Vue.js - MVVM belief
Learning video address of station B: https://www.bilibili.com/video/BV1e7411M7GQ
All based on ES6 (let, const, arrow function, promise, axios)
MVVM model (React nactive is widely used in APP)
Traditional js top and bottom gives you thinking, breaking the manual operation of DOM
1. Import vue.js
<script src="vue. ...
Added by xhitandrun on Mon, 27 Apr 2020 18:19:21 +0300
vue initially uses vue resource to implement asynchronous request (ajax), and vue 2.0 began to recommend using axios instead of vue resource.
1. Download axios using npm
npm install axios
2. Introducing axios.js
Change to min.js when online
The front-end vue uses axios ...
Added by RiBlanced on Fri, 10 Apr 2020 17:44:55 +0300
Hungry? Study (1)
Install vue scaffold
npm install -g vue-cli
Vue init webpack < project name >
Others omitted: webpack configuration needs to be recorded separately for learning
Learn to use stylus in this project
Install stylus and in ...
Added by homerjsimpson on Mon, 30 Mar 2020 22:14:09 +0300
In the project, vue is used to build the front-end page, and axios requests the back-end api interface to complete the data interaction. If the password token is written in each interface, it is not only a small physical work, but also inflexible. Here we share the use of vue's own interceptor to add token to the header of each request, and it ...
Added by Seamless on Mon, 30 Mar 2020 18:25:36 +0300
Definition of high-order function: high-order function refers to the function of operation function; generally, there are two situations in the process o ...
Added by kweathe on Sat, 21 Mar 2020 09:55:53 +0200
1. The log console used in the development is set as the development output and not output when running
Installation: Babel plugin transform remove console development dependency
//Add to babel.config.js file
//This is the babel plug-in to be used in the project release phase
const prodplugins = 
//Determine whether it is an operating ...
Added by Blade280891 on Sat, 07 Mar 2020 09:54:10 +0200