js中注意的一个小知识点

if(a)


 a为以下值时转换为false

false
undefined
null
0
-0
NaN
""

posted @ 2018-02-07 16:25  电影公众号  阅读(179)  评论(0编辑  收藏  举报