如果我执行0 == "0",它会评估为true。请尝试,
if( -777 == "-777" ) alert("same");
弹出警告。
另外,需要注意的是 true == "true" 并不会被计算为 true。试一下:
if( false == "false" ) alert("same");
为什么弹出警告框(alert)没有发生?