JS中的false类型总结

JS中,false的种类:
     空字符串(“”)为false
     0为false;
     null为false;
     undefined为false;
     false为false;
     NaN为false;
其他的均为true…

猜你喜欢

转载自blog.csdn.net/syl2850246/article/details/82720949
今日推荐