这个表达式有什么问题?
['a', 'b'].map((x) => {[x]:x})
I'm getting this error:
Uncaught SyntaxError: Unexpected token :
['a', 'b'].map((x) => {[x]:x})
I'm getting this error:
Uncaught SyntaxError: Unexpected token :
['a', 'b'].map((x) => Object({[x]: x}))
- zfrisch