Vue3 - Virtual DOM&diff source code
Virtual DOM
node
Virtual DOM is a JS abstract representation of DOM. They are JS objects that can describe the structure and relationship of DOM. Various state changes of the application will be reflected on the virtual Dom and finally mapped to the real dom.
Before rendering the virtual DOM, we need to make some preparations. By observi ...
Added by [ArcanE] on Thu, 24 Feb 2022 10:39:48 +0200
ES6 -- Iterator
ES6 – Iterator
1, The concept of Iterator2, Function of traverser3, Iterator traversal process4, The interface implementation of self simulation traverser
1. General implementation2. Writing method of class deployment Iterator interface (es6 deployment Iterator class, equivalent to es5 function)3. Simulate the function class writing ...
Added by uluru75 on Wed, 23 Feb 2022 18:13:20 +0200
HTML5 basic summary
1. html skeleton (page fixed structure)
Whole, head, title, body
<html>
<head>
<title>Title of web page</title>
</head>
<body>
Main content of web page
</body>
</html>
html tag: the whole of web page Head tag: the head of a web page Body tag: the body o ...
Added by pinehead18 on Wed, 23 Feb 2022 12:16:24 +0200
Change the call, apply and bind methods pointed to by this
?? Blog home page: Sour dog blog?? ?? Welcome to?? give the thumbs-up?? Collect messages?? ?? Love front-end learning and look forward to communicating together! ?? The author's level is very limited. If you find an error, please let me know. Thank you!?? ?? If you have any questions, please send me a private letter??
?? Change the call, app ...
Added by kusal on Wed, 23 Feb 2022 03:12:17 +0200
Event flow, capture phase, bubbling phase, mobile end event problem
event
Event bubbling and event capture were proposed by Microsoft and Netscape respectively. These two concepts are to solve the problem of event flow (event sequence) in the page. Before the event flow, that is, the sequence of events, let's take a look at the DOM tree
1. DOM tree
How is the DOM tree formed? The code we write in VScode will ...
Added by Izzy1979 on Tue, 22 Feb 2022 20:22:54 +0200
`vue3`+`ts`+`setup ` syntax sugar implements an infinitely nested 'tree' component
Today, we use vue3+ts+setup syntax to implement an infinitely nested tree component. Let's take a look at the implementation effect first. The style has not been modified too much. This article is a very basic content. I have just come into contact with vue3 this set. Recently, I have also started to practice and use vue3 to implement some vue ...
Added by azfar siddiqui on Tue, 22 Feb 2022 18:58:31 +0200
23. HTML/CSS learning notes 23 - floating
float
The visual formatting model generally divides the arrangement of boxes in the page into three ways:
1. Conventional flow 2. Float 3. Positioning
Application scenario
text wrapping Horizontal arrangement
For example, the menu bar of Baidu home page can be arranged horizontally by using row block box or floating.
However, there may ...
Added by leoric1928 on Tue, 22 Feb 2022 17:23:15 +0200
vue uses TradingView to make K-line diagram (imitating fire coin) for detailed explanation
preface: The project needs to write a K-line diagram. The charts of echarts can't realize the functions inside, so it's really a headache to use TradingView. Baidu has few things, and it took a long time to realize them. design sketch: The k-line is updated in real time and can jump normally according to the data
index.html introduces js and ...
Added by dessolator on Mon, 21 Feb 2022 14:04:40 +0200
The use of Vue Router 4 is thoroughly explained in an article
Vue 3.X using Vue router 4 X for routing configuration, let's study how to use Vue router 4 x. All usage methods in this article are using the Composition API.
This paper introduces Vue router 4 step by step X to build a simple blog system, so that you can understand the new version of Vue router 4 X has a complete understanding, and then can ...
Added by nkyoung1 on Mon, 21 Feb 2022 13:42:20 +0200
Encapsulation of background interface method of uni app request
preface:
Request background interface for method collation in uni app. Personal encapsulated version and official method.
Official entrance:
Package version: see the following table of contents
1. Create a new folder api, which mainly puts the interface information
login.js interface method for putting login page
import axios from '../u ...
Added by gl_itch on Mon, 21 Feb 2022 13:28:55 +0200