Category JavaScript

JavaScript tutorial. JavaScript is the programming language of the Web. All modern HTML pages use JavaScript, which is very easy to learn. This tutorial will teach you to learn from basic to advanced JavaScript knowledge. JavaScript online examples This tutorial contains a large number of JavaScript examples.

How to use React-Redux

1. Using react-redux in React projects can make it more convenient for you to use redux, the principle is to use a tag nesting when registering the app, .js subcomponents of your app, and pass all the forms to youindex.jsProvideerstateprops…

react redux asynchronous Action

The last two articles describe synchronous operations, where the state is updated immediately when a dispatch action is taken. But in practice, we have a lot of operations that take a while to get the result after execution. So how…

js judges empty objects and empty arrays

It is often necessary to judge data during business processing. Here we introduce the judgment methods of empty objects and empty arrays. Judgment of empty array Null object judgment The isPrototypeOf() method is used to test whether an object exists…

The new Set de-reuse method in js

ES6 provides a new data structure, Set, which is similar to an array, but the values of the members are unique and there are no duplicate values; Set itself is a constructor that generates the Set data structure. Array de-duplication…

Take a look at the ES6 unarrow function

Basic Grammar Shorter expressions There is no separate this Before the arrow function appears, each new function defines the this value of this function according to how it was called. If the function is a constructor, this pointer points to…

What is Promise? What are the parameters? how to use?

Noun convention In general, there are the following noun conventions. Promise (lowercase initials) object refers to “Promise instance object” Promise initial capitalization and singular form for “Promise constructor” Promises is capitalized and pluralized to refer to the “Promises specification” So…

How to capture and analyze JavaScript Error

Front-end engineers know that JavaScript has basic exception handling capabilities. We can throw new Error(), and the browser will also throw an exception when we call the API and make an error. But it is estimated that most front-end engineers have not considered…