JavaScript data type - array explanation

The Array object of JavaScript is a global object used to construct an Array, and an Array is a high-order object similar to a list. Using regular expressions to match strings yields an array. This array contains the relevant information and matching results of this matching. RegExp.exec,String.match,String.replace will return such an array ...

Added by husslela03 on Mon, 17 Jan 2022 01:24:50 +0200

Usage and difference of Provider in AngularJS

In a well layered Angular application, the Controller layer should be very thin. In other words, most of the business logic and persistent data in the application should be placed in the Service. Therefore, it is necessary to understand the differences between several providers in AngularJS. New services created by the Provider can be used for ...

Added by JasperBosch on Sun, 16 Jan 2022 23:52:37 +0200

JS implementation inheritance

js implementation inheritance 1. Prototype chain inheritance (Recommendation Index) ❤❤) Take the instance of the parent class as the prototype of the child class function Animal(){} Animal.prototype.name = 'cat' Animal.prototype.age = 1 Animal.prototype.say = function(){console.log('hello')} var cat = new Animal() cat.name //cat c ...

Added by kind on Sun, 16 Jan 2022 23:04:13 +0200

[initial experience of oil monkey script writing] copy title and location

Knowledge points gained from [one click Copy of web page title and address (oil monkey script)] Article update: July 19, 2021 15:26:07 preface I named my little blue button "Fu Niu", which means "button (NIU) used to duplicate (Fu) system". I initially completed the function around May 27, 2021. It seems that there will ...

Added by gangsterwanster1 on Sun, 16 Jan 2022 21:21:55 +0200

Front end interview: talk about your understanding of Promise in ES6 and use scenarios

Promise introduction Promise asynchronous programming solution is more reasonable and powerful than the traditional solution (callback function), mainly to solve the problem of callback hell. What is hell? Look at the following code: doSomething(function(result) { doSomethingElse(result, function(newResult) { doThirdThing(newResult, fu ...

Added by brodwilkinson on Sun, 16 Jan 2022 21:14:05 +0200

Common node operations of JS DOM (Part 2)

relation: Common node operations of JS DOM (Part 1) catalogue DOM events Event overview Registration event 1. Registration method in label 2. Traditional registration method 3. Registered listening method Delete event 1. Deletion of registration methods and traditional registration methods in the label 2. Deletion of registered ...

Added by mrneilrobinson on Sun, 16 Jan 2022 20:07:39 +0200

Can't JavaScript foreach use break/continue? In the same way, the for loop does not work

Can't JavaScript foreach use break/continue? In the same way, the for loop does not work Today, I learned and discussed the foreach/map function when discussing a JavaScript asynchronous problem with my friends in the group. Of course, the focus is on asynchrony. Here, I will analyze the details in combination with my own understanding and po ...

Added by TecBrat on Sun, 16 Jan 2022 18:57:11 +0200

[VUE project practice] 31. Permission management - implementation permission list

Continued from the previous article 30. Realizing the function of deleting users In the last stage, we completed all the functions of the user management module. In this chapter, we begin to develop the permission management module. 1, Innovative new git branch Because we want to develop new modules, according to the principle of module colla ...

Added by benji87 on Sun, 16 Jan 2022 18:11:09 +0200

Explain the implementation principle of Jest framework in simple terms

English Version | Chinese version Explain the implementation principle of Jest framework in simple terms https://github.com/Wscats/jest-tutorial What is Jest Jest is a JavaScript testing framework developed by Facebook, which is used to create, run and write JavaScript libraries for testing. Jest is published as an NPM package and can be i ...

Added by tmayder on Sun, 16 Jan 2022 15:55:47 +0200

maptalks Development Manual - Introduction

Why maptalks As buddies, partners know that every map vendor is bound to their own map resources. For example, very popular mapBox, Gd, Baidu, Tencent, etc., you must register their products, get key, and then call api to carry out map related operations, though it brings convenience, but there is also this limitation. Then someone may as ...

Added by dellwoodbu on Sun, 16 Jan 2022 13:28:29 +0200