Skip to content

Instantly share code, notes, and snippets.

@xyzdata
Last active August 27, 2017 15:35
Show Gist options
  • Save xyzdata/7d861fde6dd15262ae007e68ca0898f0 to your computer and use it in GitHub Desktop.
Save xyzdata/7d861fde6dd15262ae007e68ca0898f0 to your computer and use it in GitHub Desktop.
`1` for `warnings` and `2` for `errors` & "rules": { "semi": [2, "always"] }
@xyzdata
Copy link
Author

xyzdata commented Jun 30, 2017

前端架构设计 ,Micah Godbolt ,164 ,2017.05

===================================
链接:http://pan.baidu.com/s/1pLg8YpH
密码:ms4q

http://www.ituring.com.cn/book/1946

Frontend-Architecture-Design-Systems-Sustainable

O'Reilly Media; 1 edition (February 12, 2016)

https://www.amazon.com/Frontend-Architecture-Design-Systems-Sustainable/dp/1491926783/

http://www.jianshu.com/p/92c7cfc55d0a

https://www.zhihu.com/question/26187669

https://item.jd.com/12052766.html

https://github.com/vikingmute/

本书中默认的开发环境是 Node.js 5.0.0,
书中介绍到的几个库的版本分别为[email protected][email protected][email protected]
其他如未特别说明的则为最新版本。

@xyzdata
Copy link
Author

xyzdata commented Jun 30, 2017

ES7 Object Spread - 试验性 (尚未标准化)

vikingmute/webpack-react-codes#30

数组是可以用到的,但是对象一直报错!

@gaoxiaopang

https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment

// ES7 - 试验性 (尚未标准化)
// Uncaught SyntaxError: Unexpected token ...
({a, b, ...rest} = {a:1, b:2, c:3, d:4});

image

@xyzdata
Copy link
Author

xyzdata commented Jun 30, 2017

({a, b, ...rest} = {a:1, b:2, c:3, d:4});

{a, b, ...rest} = {a:1, b:2, c:3, d:4};

[a, b, c, d] = [1, 2, 3, 4];

[a, b, ...rest] = [1, 2, 3, 4];

[x, y, z, ...rest] = [a, b, c, d];

([x, y, z, ...rest] = [a, b, c, d]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment