(![] + [])[+ []] ...解释为什么会这样
alert((![]+[])[+[]]+(![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]);
此代码的输出是:fail。为什么?
fail
顺便说一句(![]+[])[+!+[]] == 'false'[1],对吗?但为什么![]+[] == "false"和为什么+!+[] == 1?
(![]+[])[+!+[]] == 'false'[1]
![]+[] == "false"
+!+[] == 1
相关分类