
> a = 'k' 'k' > {[a]: 1} { k: 1 } 这段代码是在babel-node里面跑的,查遍了文档也没有找到(文档里面肯定有)
1 gxm44 2016 年 3 月 2 日 These are called "computed property names". https://developer.mozilla.org/en-US/docs/Web/Javascript/Reference/Operators/Object_initializer#Computed_property_names |
2 djyde 2016 年 3 月 2 日 |
3 agate 2016 年 3 月 2 日 楼上正解~ |