+a、NaN 发表于 2017-07-17 关于+a+a是转为number类型,同parseInt(a) var a = 1; console.log(+a); //parseInt(a)=1 console.log(a); //1 NaNNaN == NaN //falseNaN === NaN //false