摘要: !function(){console.log(12);}() 执行 (!function(){console.log(12);}()) 执行 function(){console.log(12);}() 报错 +function(){console.log(12);}() 执行 ~function 阅读全文
posted @ 2016-10-06 23:42 papering 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 35bool(false) --35bool(true) --135bool(false) --235bool(true) --3 阅读全文
posted @ 2016-10-06 20:25 papering 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 小结: 1、 把 null 作为尚未创建的对象可以使用undefined和严格相等或不相等操作符来决定一个变量是否拥有值 undefined - JavaScript | MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe 阅读全文
posted @ 2016-10-06 20:15 papering 阅读(336) 评论(0) 推荐(0) 编辑
摘要: //对象是可变的键控集合, //“numbers, strings, booleans (true and false), null, and undefined” 不是对象的解释 The simple types of JavaScript are numbers, strings, boolea 阅读全文
posted @ 2016-10-06 09:09 papering 阅读(154) 评论(0) 推荐(0) 编辑