preface❤️ How much talent a person has, how much humility will be engraved in his bones ❤️
(1) Registration event (binding event)
1.1 overview of registration events
one ️⃣ Adding an event to an element is called a registration event or a binding event. two ️⃣ There are two ways to register events: traditi ...
Posted by djwiltsh on Sun, 06 Mar 2022 21:50:52 +0100
In one experiment, many caterpillars were placed on the edge of a flowerpot to make them connect head to tail and form a circle. Then sprinkled some caterpillar food near the flowerpot.
At this time, caterpillars do not climb in the direction of food, but circle one by one at the edge of the flowerpot until they d ...
Posted by danc81 on Sun, 06 Mar 2022 15:37:47 +0100
01. Scope and scope chain
1.Variables and functions defined at the outermost layer have global scope
Posted by eb1024 on Sun, 06 Mar 2022 15:32:52 +0100
Promise is a solution for asynchronous programming, which is more reasonable and powerful than traditional solutions - callback functions and events. It was first proposed and implemented by the community. ES6 has written it into the language standard, unified the usage, and provided promise objects natively.
Promise is simply ...
Posted by Dvorak on Sun, 06 Mar 2022 15:17:28 +0100
1. Regular expression overview
1.1 what is a regular expression
The text boxes that match the regular name and number in the search form (for example, the text boxes that match the regular name and number ...
Posted by aalmos on Sun, 06 Mar 2022 15:11:19 +0100
The plug-in library often needs to be developed globally, or exception handling is required:Handle exceptions globally;Prompt error messages for developers;Scheme degradation processing, etc.So how to realize the above functions?This paper first briefly implements an exception handling method, then introduces it in detail combined with the impl ...
Posted by adsegzy on Sun, 06 Mar 2022 15:05:17 +0100
It is divided into simple type (basic type) and complex type (reference data type)
Basic types: String, number, Boolean, Null, Undefined, Symbol(ES6 added).
Complex types: object, array, function.
Note: both Array and Function are subclasses of object, so there is only one kind of object in the strict sense of complex type, which ca ...
Posted by dicefile on Sun, 06 Mar 2022 12:31:11 +0100
Posted by canadian_angel on Sun, 06 Mar 2022 11:43:52 +0100
Deepen the understanding and application of e.pageX, e.pageY, offsetLeft, offsetTop, offsetWidth and offsetHeightApplication of mouse events mouseover, mouseout and MouseMove
Implementation effect: the mouse moves in the small picture on the left, and the enlarged effect of this part of the area i ...
Posted by abelajohnb on Sun, 06 Mar 2022 11:16:56 +0100