Sorting out several network request modes of js -- getting rid of callback hell
abstract This paper introduces three writing methods of asynchronous network requests based on XMLHttpRequest, Promise and async/await. async/await allows us to write asynchronous programs in a way similar to synchronization and get rid of cumbersome callback functions.
1, Background
In order to meet more and more testing requirements and r ...
Added by GoodWill on Thu, 03 Mar 2022 04:59:28 +0200
Interpretation of Vue source code -- Analysis of compiler
When learning becomes a habit, knowledge becomes common sense. Thank you for your attention, likes, collections and comments.The new video and articles will be sent to WeChat official account for the first time. Li YongningThe article has been included in github warehouse liyongning/blog , welcome to Watch and Star.Special instructionsDue to th ...
Added by dajawu on Thu, 03 Mar 2022 02:44:17 +0200
Interpretation of Vue source code -- Analysis of compiler
When learning becomes a habit, knowledge becomes common sense. Thank you for your attention, likes, collections and comments.
The new video and articles will be sent to WeChat official account for the first time. Li Yongning
The article has been included in github warehouse liyongning/blog , welcome to Watch and Star.
Special instructions
D ...
Added by Encrypt on Thu, 03 Mar 2022 02:42:16 +0200
JavaScript knowledge points sorting - DOM - node operation
catalogue
1, Why learn node operations
2, Node overview
3, Node level
3.1 parent node
3.2 child nodes
3.2.1 case exercise - drop down menu
3.3 brother nodes
4, Create and} add nodes
4.1 case exercise - simple message posting case
5, Delete node
5.1 case exercise - delete message
Vi. replication node (clone node)
1, Why learn nod ...
Added by rockroka on Thu, 03 Mar 2022 01:37:44 +0200
[vue source code reading] understanding of source code engineering
I usually read the source code, but I haven't summarized it systematically, so I'll take this opportunity to sort it out again; Not only the technical details of the source code; In the process from downloading the code to running the source code, there will be knowledge points and technologies we are not involved in or familiar with at every s ...
Added by jokkis on Wed, 02 Mar 2022 18:29:56 +0200
Vue source code analysis - instance mounting process
Basic process of instance mounting
After the options are merged, Vue makes a series of function calls, including initializing the event center, defining rendering functions, and so on. In_ At the end of the init method, the object el is Option. If the el option exists, the $mount method will be called to mount the instance.
/* istanbul ignore ...
Added by steadyguy on Wed, 02 Mar 2022 16:07:28 +0200
I hear you're familiar with the output in JavaScript?
prefaceUnlike Java and other languages, JavaScript does not have any printing or output methods. It usually uses the following four ways to output data.Use window Alert() is used to pop up a warning boxUse document Write() writes the content to the HTML documentUse innerHTML to write to HTML elementsUse console Log() is written to the browser c ...
Added by gandelf1000 on Wed, 02 Mar 2022 15:55:56 +0200
Day13 DOM operation, attribute operation and event
1 simulate document tree structure
2 how to get elements
1) Get element by id
var div1 = document.getElementById("box1");
2) Get element by class name
var p1Arr = document.getElementsByClassName("p1");
Pseudo array definition:
1. It has the length attribute, and other attributes (indexes) are non negative integers (the index in the objec ...
Added by john_wenhold on Wed, 02 Mar 2022 15:17:41 +0200
BOM and DOM operation learning
1. Foreplay
JavaScript is divided into ECMAScript, DOM and BOM. Some interactive functions of web pages use BOM and DOM related knowledge.
BOM (Browser Object Model) refers to the Browser Object Model, which enables JavaScript to "talk" with the browser.
DOM (Document Object Model) refers to the Document Object Model, through ...
Added by venradio on Wed, 02 Mar 2022 14:00:41 +0200
I hear you're familiar with the output in JavaScript?
preface
Unlike Java and other languages, JavaScript does not have any printing or output methods. It usually uses the following four ways to output data.
Use window Alert() is used to pop up a warning boxUse document Write() writes the content to the HTML documentUse innerHTML to write to HTML elementsUse console Log() is written to the brows ...
Added by nootkan on Wed, 02 Mar 2022 12:27:12 +0200