Tag:ecmascript

  • Teach you to quickly deploy ES clusters in Kubernetes

    Time:2022-11-27

    Summary:ES cluster is a powerful tool for big data storage and analysis, and fast retrieval. This article briefly describes the ES cluster architecture, and provides a sample of quickly deploying ES cluster in Kubernetes; introduces the monitoring and maintenance tools of ES cluster, It also provides some experience in problem location, and finally summarizes the […]

  • Learn about the important features of ES6+ (ES2015-ES2019) in 10 minutes

    Time:2022-11-26

    ES2015(ES6) ES2015 is the ECMA Script (JS) language version released in 2015, and it is also the sixth version, so it is also called ES6. Since then, ECMA Script has released a large version every year and added some important features, which we call ES6+. This article mainly summarizes the main features of ES2015-ES2019. A […]

  • How to use arrow functions as callbacks for event listeners

    Time:2022-11-25

    arrow function ES6 introduces the concept of arrow functions, a new way of defining and writing functions. While it may seem like syntactic sugar for regular functions, the key difference between them is the need forthisthe binding method. This article will not deal with thethislots of detail event listener callback When writing JavaScript for the […]

  • ES6 new syntax (1) – the difference between let, const and var

    Time:2022-11-24

    Introduction to ES6 ES6 is the abbreviation of ECMAScript 6.0, which is the next generation standard of javascript language, which was officially released in June 2015. The purpose is to unify the grammatical standards of javascript, which can be used to develop large-scale applications, and is called an enterprise-level development language. The relationship between ES6 […]

  • ES6 new grammar (3) – object-oriented

    Time:2022-11-23

    2 changes in json in ES6 Abbreviation: When the name and value are the same, json can be abbreviated let a=12,b=5; let json = { a, b } console.log(json) // { a:12 , b:5 } Omit function: functions in json can be abbreviated let persen ={ name:’Qianqian’, age:18, showName(){ alert(this.name) } } persen.showName() ES6 and […]

  • ES new features

    Time:2022-11-22

    es6: https://es6.ruanyifeng.com/ es6-es12: https://segmentfault.com/a/11… Block-level scope let, const (the reference address cannot be changed) Destructuring assignment, spread operator template string“ /* tagged template string */ function foo(a, b, c) { console.log(a, b, c); } let name = ‘Jack’; let age = 18; foo `my name ${name}, age ${age}`; arrow function Dynamically introduce import(moduleName).then((module) => {}) […]

  • ES6 New Grammar (5) – Promise Detailed Explanation

    Time:2022-11-21

    Promise Introduction A promise is an object from which messages for asynchronous operations can be obtained. There are several methods such as all, race, reject, and resolve, and the prototype has methods such as then and catch. Two characteristics of Promise: The state of the object is not affected by the outside world. The Promise […]

  • ES6 New Grammar (6) – Generator Function Detailed Explanation

    Time:2022-11-20

    In the previous article “ES6 New Grammar (5) – Promise Detailed Explanation”, we introduced Promise. Once a Promise is executed, it cannot be suspended or canceled. Therefore, ES6 introduces the Generator function, which can suspend the execution process of the function through the yield keyword. The flow of execution can be changed. What is a […]

  • ES6 new syntax (seven) – async…await

    Time:2022-11-19

    what is async async means “asynchronous”. As the name implies, it is a keyword related to asynchronous operations. async is unique to ES7 and has a lot to do with the Promise and Generator we mentioned earlier. Use the syntax: async function name(param){ param //parameter name passed to the function statements //function body } name().then(function(res){ […]

  • E9 second open document

    Time:2022-11-18

    E9 second open document @Author: Fuzhou ebu Yang Wenjie 1. Basics of front-end development 1.1 Use of ECMAScript6 The relationship between ECMAScript and JavaScript is: the former is the specification of the latter, and the latter is an implementation of the former. ES6 is not only a historical term, but also a general reference. It […]

  • Introduction to new features of ECMAScript 2020 (ES11)

    Time:2022-11-17

    Introduction ES11 is a version released by the ECMA Association in June 2020. Because it is the eleventh version of ECMAScript, it is also called ES11. Today we explain the new features of ES11. ES11 introduces 9 new features, which we will explain one by one next. Dynamic imports Before ES11, we could import modules […]

  • Learn to use Promises

    Time:2022-11-16

    foreword Recently, I encountered a problem in the development: there are four-level linkage of drop-down components in the Table row, and new rows can be added, and each new row has four-level linkage. Question: How to solve it? After thinking about it for a long time, I used Promise to solve it, which gave me […]