40

“===” 也有不靠谱的时候

 6 years ago
source link: https://juejin.im/post/5aa94e97f265da239a5f8394
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
写于2015年5月8日,最新修订于2015年5月26日,可能已过时,请谨慎参考。 原文 自古js多奇葩,语言层面上有许多坑,入坑多了也就习惯了。那就再多一个坑吧。 javascript在判断两个值是否相等时,有两种方式 == 和 ===。这两者的区

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK