Learning notes of javascript advanced programming | 9.1 Agent basis

follow [front end Xiaoao] , read more original technical articles Agent basis ES6 proxy and reflection provide developers with the ability to intercept and embed additional behavior into basic operationsA proxy is an abstraction of a target object. It can be used as a substitute for the target object, but it is completely independent of the ...

Added by jibosh on Sun, 30 Jan 2022 18:19:17 +0200

JS array basic learning

Learning contents: forEach, slice and slice, and the remaining methods of array Study notes forEach Generally, we use the for loop to traverse the array JS also provides us with a method to traverse the array forEach() only supports browsers above IE8 The forEach() method requires a function as a parameter; This function is created by us, bu ...

Added by timmy2 on Sun, 30 Jan 2022 15:27:07 +0200

In depth analysis of webpack

background   When it comes to building tools, I often add the word "automation" before it, because building tools are used to make us stop doing mechanical things and liberate our hands. What is front-end automation? The code that front-end engineers need to maintain is extremely huge and complex, and the processes of code maintena ...

Added by lj11 on Sun, 30 Jan 2022 14:59:24 +0200

Inheritance mode of JS

1, Prototype chain inheritance The key of prototype chain inheritance is to assign new Parent() to child Prototype, which means that when accessing the properties of the child object, if it cannot be found on the child, it will go to the child Prototype. If you can't find it, you'll go to parent Find it in prototype, so as to realize inheritan ...

Added by mkarabulut on Sun, 30 Jan 2022 13:10:03 +0200

2021-06-11 JS singleton built-in object - Global

Global object brief introduction The Global object is the most special object. ECMA-262 stipulates that the Global object is a bottom-up object and does not belong to the attributes and methods of any object. In fact, there is no such thing as Global variables or Global functions. Variables and functions defined in the Global scope become pro ...

Added by xydra on Sun, 30 Jan 2022 12:13:15 +0200

Five minutes to learn to do an online lottery system, hand-in-hand to teach you how to draw?

catalogue 1, Implementation principle 2, Define an array for storing picture URL s 3, Set start button action event 1. Set click listening 2. Set start button failure 3. Define cycle timer 4. Toggle src attribute of small photo frame 4, Set end button action event 1. Set the listening function for the end button 2. Set stop button fai ...

Added by coder_ on Sun, 30 Jan 2022 06:56:41 +0200

Release an npm package and build your own third-party library

Release an npm package and build your own third-party library preface When Xiaosheng needs to release his npm package, he can't meet his needs by seeing many online tutorials; Either it's too simple or it's short of three or four. Therefore, go to GitHub of major manufacturers and read its source code patiently before you have experience; I h ...

Added by Warzone RTS on Sun, 30 Jan 2022 04:31:54 +0200

Redux topic - 1 Introduction and basic use of Redux

Link: Document address. 1. Get to know Redux 1.1 JavaScript pure functions In functional programming, there is a concept called pure function. JavaScript conforms to the paradigm of functional programming, so there is also the concept of pure function; In React, the concept of pure function is very important, and it is also very important i ...

Added by PHPMan on Sun, 30 Jan 2022 03:38:05 +0200

Node.js basic notes~~~

Introduction - learn node The purpose of JS is to help you open the black box of the server. Only by understanding the server can we better cooperate with the server developers in collaborative development 1.1 review and reflection 1. Why can javaScript be executed in the browser? 2. Why can javaScript operate DOM and BOM 3. javaScript ...

Added by TempleDMDKrazd on Sun, 30 Jan 2022 01:45:40 +0200

Common methods in js array

Methods of manipulating arrays in js Two ways to create arrays var arr=[ ];var arr=new Array(); 1 . Adding elements to an array Both methods of adding elements will return the array length after the method is executed >Will change the original array< (1) unshift adds an element to the front of the array let arr = [1, 2, 3, 4] ...

Added by renojim on Sun, 30 Jan 2022 00:00:28 +0200