JS中的等于与不等于

js中
==与===
!=与!==
的区别为:

前者会进行类型转换,后者强制类型必须统一

Leave a Reply

Your email address will not be published. Required fields are marked *

*