
1 lixingcong 2016-11-08 12:33:01 +08:00 via Android 为什么我从手机 chrome 打开这页面是暗色 css ?? |
2 miyuki 2016-11-08 12:34:11 +08:00 via Android @lixingcong 节点主题 |
3 7anshuai 2016-11-08 12:34:41 +08:00 via iPhone 可以参考下 http://node.green |
4 gucheen 2016-11-08 12:38:16 +08:00 因为现在 ecma rest operator 不支持 object object 的 rest operator 是 stage 3 的规范 https://github.com/sebmarkbage/ecmascript-rest-spread |
5 chemzqm 2016-11-08 12:48:39 +08:00 早就支持了, node 6.9 可用 |
6 smallpath 2016-11-09 00:52:34 +08:00 object rest operator 还没支持,得配 babel + preset-stage3 , 或者转 object rest operator 的插件+stage2 |
7 tongchia OP |
8 kingze1992 2016-11-20 10:26:00 +08:00 @tongchia Nicholas Zakas 大神的书中有写: Rest items must be the last entry in the destructured array and cannot be followed by a comma. Including a comma after rest items is a syntax error. 所以你最后的 destructure 用的不对。 难道 ES2016 支持这种写法? |