!!a的作用

!!a将a转换bool形后,进行===精确匹配,保证严谨性

false==="" //为false

false===!!""//为true

posted @ 2012-03-02 09:42  wuhao12  阅读(359)  评论(0)    收藏  举报