ES6 notes

来源:互联网 发布:程序员到架构师 编辑:程序博客网 时间:2024/06/05 04:13

String template

${variable}

Arrow function

() => {}

Be aware that the context of arrow function is bound to its parent

Import and export

Var, let and const

Object key-value representation

{ val }// equal to{ val: val }

for of

Used to iterate over iterable objects (including Array, String, Map, Set, arguments object). for in iterates over all enumerable properties of an object, while for of is specific to collections

Map and set

Class

constructor
public method
static method

原创粉丝点击