众所周知,{}定义像对象一样的对象的方法较短[].
{}
[]
但现在我想知道为什么:
{} != ({})
({})
为什么JavaScript表现得像这样?
例如1等于(1),为什么{}不等于({})?
1
(1)
javascript
javascript ×1