看到个写法, 有点不解, 代码如下let a = 'user'const actions = { 'test' () { console.log(444444) }, // 为什么能够这么定义函数 [`${a}test2`] () { console.log(555555) },}为什么es6能够这么定义函数, 加了中括号却不是数组?
添加回答
举报
0/150
提交
取消