I'm using JSLint to go through JavaScript, and it's returning many suggestions to replace ==
(two equals signs) with ===
(three equals signs) when doing things like comparing idSele_UNVEHtype.value.length == 0
inside of an if
statement.(我使用JSLint的经历JavaScript和它的返回许多建议更换==
(双等号)与===
(三级等号)做这样的事情进行比较时idSele_UNVEHtype.value.length == 0
内部的if
声明。)
Is there a performance benefit to replacing ==
with ===
?(将==
替换为===
有性能优势吗?)
Any performance improvement would be welcomed as many comparison operators exist.(由于存在许多比较运算符,因此任何性能改进都将受到欢迎。)
If no type conversion takes place, would there be a performance gain over ==
?(如果没有进行类型转换,是否会获得==
以上的性能提升?)
ask by bcasp translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…