console.log(NaN === NaN); // false因为有很多方法表示非数字,所以两个非数字不一定相同。 console.log(~-1==0);//true~按位取反运算符 转载于:https://www.cnblogs.com/mfbxy/p/4964035.html