老生常谈js中0到底是 true 还是 false
老生常谈,电脑软件,true,js,false,想到一个好玩的,运行如下 javascript :if ('0') alert("'0' is true");if ('0' == false) alert("'0' is false");结果是,两次都 alert 了!那么 '0…
老生常谈,电脑软件,true,js,false,想到一个好玩的,运行如下 javascript :if ('0') alert("'0' is true");if ('0' == false) alert("'0' is false");结果是,两次都 alert 了!那么 '0…