Note the packaged resource dependencies and the order in which resources are imported. 1. Introduction Performance optimization covers a very wide range, which contains very...
What is a closure? Closures are functions that can read variables inside other functions. Because in the Javascript language, only subfunctions inside functions can read...
Lexical scope A scope is a set of rules for finding variables by their identifier names. Javascript is a lexical scoped language. Lexical scope means...
This article is reprinted from 32 handwritten JS to strengthen your JS foundation. Array flattening Array flattening is the process of turning a multidimensional array...
An object is an unordered collection of data defined by curly braces. It consists of key-value pairs separated by colons. If an object contains multiple...
The Observer pattern is a behavioral pattern. Intent: Define a one-to-many dependency between objects so that when an object's state changes, all dependent objects are...
In recent interviews, interviewers have been asking questions about Vue source code and "family buckets". So how do we respond better to these questions? Here...
Scope: Is responsible for collecting and maintaining a series of queries made up of all declared identifiers (variables) and enforcing a very strict set of...
The author will illustrate the history of asynchronous development with practical examples, and introduce the advantages and disadvantages of each implementation method in order to...
This is the 28th day of my participation in the August Text Challenge. Since JavaScript does not automatically implement the copy behavior, we need to...
IndexOf method IE8 does not support array indexOf method IE8 does not support array indexOf method IE8 does not support array indexOf method IE8 does...
Defining the DOM (Document Object Model) structure is a tree structure. When an HTML element generates an event, the event is propagated along the path...
CommonJS is a module specification that was originally applied to Nodejs as the module specification for Nodejs. JavaScript running on the browser side lacks a...
Function stabilization: a function that is triggered frequently and only triggers the function once within a specified period of time. For example: - The user...