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