摘要:
Read More:http://es6.ruanyifeng.com/#docs/destructuringArray“模式匹配”,只要等号两边的模式相同,左边的变量就会被赋予对应的值:Exp 1:var [head, ...tail] = [1, 2, 3, 4];console.log(hea... 阅读全文
摘要:
Here is the way you get value from an object:var obj = { color: "blue"}console.log(obj.color); //blueDestructuring Assignment:ObjectDestructuring ... 阅读全文