patch analysis of vue virtual dom core method
Browser rendering engine process
Create DOM tree - > create StyleRules - > create Render tree - > Layout - > drawing
virtual Dom
First, virtual DOM is not unique to Vue, including React and other front-end frameworks. As long as the entity DOM is calculated before operation, it can be collectively referred to as virtual DOM bas ...
Posted by Josien on Mon, 17 Jan 2022 07:42:30 +0100
vue e e-commerce platform project
Catalogue of series articles
For developing a vue project, the following steps are usually required:
1, Front end project initialization
Installation of Vue scaffold: To install Vue in the global environment, the installation steps are as follows: 1. First: from nodejs Download nodejs - > and install vue globally.
npm install vue-cli -g ...
Posted by bubble_gum on Mon, 17 Jan 2022 01:17:50 +0100
Axios api, js structurally defines and invokes business api interfaces.
axios-api
@no-996/axios-api A tool based on axios that can create structured instances has the following characteristics:
Based on axios and compatible with axios api, it can be migrated and used seamlessly.
Two common request termination scenarios (based on cancelToken) are built in to prevent repeated interface calls.
The built-in caching me ...
Posted by eddiegster on Sun, 16 Jan 2022 22:37:31 +0100
[learning notes] learn to use Vuex
Introduction, installation and initialization
What is vuex
VueX is a state management tool for use in Vue project development. Vue provides a unified management tool - VueX for these values frequently used by multiple components. In a Vue project with VueX, we only need to define these values in VueX, which can be used in the components of th ...
Posted by Bauer418 on Sun, 16 Jan 2022 19:19:45 +0100
Summary of Vue-CLI2 front end routing usage
1. Install Vue router
The reason for using -- save instead of -- save dev here is that it is also needed during generation
npm install vue-router --save
2. Create a project using Vue cli 2 (router can be installed or not)
If router is installed when creating a project, a router directory will appear in the src directory of the created ...
Posted by poisedforflight on Sun, 16 Jan 2022 15:41:26 +0100
vue implements bidirectional data binding
Principle of realizing bidirectional data binding by vue
vue bidirectional data binding is realized by data hijacking combined with publisher subscriber mode.
vue through object Defineproperty() to implement data hijacking. Object.defineProperty() can control some special operations of objects, such as:
let person = {}
let name = ''
Object.d ...
Posted by Nomaad on Sun, 16 Jan 2022 13:41:47 +0100
Interview questions in vue
The difference between v-if and v-show
v-if controls the explicit and implicit of elements by controlling the existence of dom nodes;v-show sets the display style of DOM elements. block is displayed and none is hidden;
Why use key in v-for
When v-for updates the rendered element queue, it will judge whether a value has been modified accordin ...
Posted by jon2396 on Sun, 16 Jan 2022 12:39:07 +0100
Build Nginx deployment vue project under Ubuntu
Build Nginx deployment vue project under Ubuntu
Previous: deploying SpringBoot under Ubuntu
Step 1: install nodejs on Ubuntu
Execute the apt install nodejs command to install nodejs.
There are many examples in the article before the process. I won't say more. During the process, there will be a prompt to confirm the occupation of disk sp ...
Posted by Giri J on Sun, 16 Jan 2022 10:27:57 +0100
Front and back end separation Vue + Springboot to realize single page development of user list (recommended Collection)
User list page development
Project introduction
User list page development can realize simple query, deletion, modification, and addition of user information. The front end uses the vue framework, and the back end uses the springboot framework. A simple vue+springboot separates the front and back ends of small projects.
The main modules ...
Posted by nominator on Sat, 15 Jan 2022 23:57:26 +0100
[solution] Vue3 multi-component asynchronous task queue
About Vue3 and MIT The usage of JS is introduced in another article
Some Vue3 knowledge points sorted out (550)+ 👍)
Demand introduction
Recently, the company has a demand for a mobile page. A page contains multiple floors, each of which is a separate component. Each component has its own logic.
The page is similar to the welfare page of ...
Posted by drayfuss on Sat, 15 Jan 2022 21:25:35 +0100