码迷,mamicode.com
首页 > Web开发 > 详细

js中判断为false的情况

时间:2017-04-25 22:15:57      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:null   document   define   bsp   als   efi   write   nbsp   undefined   

     document.write((new Boolean())+"<br />");
        document.write((new Boolean(""))+"<br />");
        document.write((new Boolean(0))+"<br />");
        document.write((new Boolean(-0))+"<br />");
        document.write((new Boolean(null))+"<br />");
        document.write((new Boolean(undefined))+"<br />");
        document.write((new Boolean(false))+"<br />");
        document.write((new Boolean(NaN))+"<br />");

js中判断为false的情况

标签:null   document   define   bsp   als   efi   write   nbsp   undefined   

原文地址:http://www.cnblogs.com/shiyunfront/p/6764418.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!