Deep understanding of es6

I. symbol javascript basic data types: null,undefined,number,boolean,string,symbol ES6 introduces a new primitive data type, Symbol, to represent unique values (a randomly generated id string that will never be repeated) let s = Symbol(); typeof s // "symbol" Set and Map 1,Set() It is a new data structure provided by es6, similar to array, but ...

Posted on Tue, 10 Sep 2019 03:50:05 -0400 by philip@hux.co.za

web Front-end Introduction to Practice: Implementation and Application of JavaScript Collection

Similar to the concept of set in mathematics, a set consists of a group of disordered elements, and each element in the set is unique. We can review the concept of set in middle school mathematics. The set we define here also has the characteristics ...

Posted on Tue, 10 Sep 2019 03:24:22 -0400 by akmalsiddique

Cocos creator develops character movement from the God's perspective of notes

Summary: This article mainly records how the characters move in the scene in the development of cocos creator. The mobile perspective is God's perspective, and the horizontal version of 2D game characters move in a similar way. Recording reasons: I ...

Posted on Mon, 09 Sep 2019 06:35:03 -0400 by adslworld.net

Build a scaffold of webpack4+react+typescript+eslint from scratch

Introduction Project github warehouse address: https://github.com/mecoepcoo/ts-react-boilerplate This series of articles focuses on how to build webpack+react+typescript+eslint scaffolding from an empty directory. When writing this article, the versions of the main tools are as follows: webpack v4 react v16.9 typescript v3.5 babel v7 esli ...

Posted on Mon, 09 Sep 2019 02:30:15 -0400 by crabfinger

This time, understand the Promise principle thoroughly

Author's statement I will migrate to the Personal Public Number Front End Q and the Nugget Platform to write articles.Blog Garden articles will no longer be updated and published in time.Welcome to the Public Number "Front End Q" and My Nuggets Home Page: https://juejin.im/user/5874526761ff4b006d4fd9a4/posts   Promise must be one ...

Posted on Sun, 08 Sep 2019 23:41:00 -0400 by sparrrow

Multiple ways to judge integers in JavaScript and keep two decimal places

1. Use Remainder Operator to Judge Any integer is divided by one, that is, the remainder is 0.Use this rule to determine if it is an integer. function isInteger(obj) { return obj%1 === 0 } isInteger(3) // true isInteger(3.3) // false   As you can see from the above output, this function works well, but it doesn't work well with string ...

Posted on Sun, 08 Sep 2019 22:28:12 -0400 by ddragas

react project configuration and redux usage process (detailed record)

Take TodoList as an example, the project address: https://github.com/mandyshen9... react project creation and configuration First create the react project: creact-react-app reactdemo Modify the default configuration: Customize the default configuration of create-react-app. Here we use react-app-rewired (A community solution for custom configura ...

Posted on Sun, 08 Sep 2019 11:23:06 -0400 by php_dave

Build a scaffold from scratch based on project requirements

Build your own scaffolding as needed 1. Processing commands entered by the end user Create a new folder named cm-cli Open the terminal, enter the command NPM init-y to generate the package.json file Install appropriate third-party libraries cnpm i commander download-git-repo inquirer handlebars ora chalk log-symbols -S commander.js, whi ...

Posted on Sun, 08 Sep 2019 01:07:42 -0400 by aktell

The Darkest Day of Vue

The usual positive and friendly VueJS community was caught in a fierce war. Two weeks ago, the founder of Vue, Yuyuxi, released a request for comments (RFC) to write Vue components in a function-based way in the upcoming Vue 3.0 release. Today, a critical post on Reddit and some similar critical comments on Hacker News have caused a large numb ...

Posted on Fri, 06 Sep 2019 11:48:13 -0400 by host78

Events (binding DOM0 level events, event monitoring DOM2 level events, deactivating event handlers)

What is an event??? Events can be detected by JavaScript for user behavior. Classification of events Mouse events Roller event Keyboard events Resource Events window event So how to bind a click event? (DOM0 level event) can only add one Binding ...

Posted on Fri, 06 Sep 2019 07:04:32 -0400 by vladibo