摘要: /* 因使用“===”,“!==”,结果一致, 便于记忆,也是各大公司推荐规范 */ (function(){ console.log('===== 1 ====='); console.log(false == 'false'); console.log(false == undefined); console.log(false == null); console.log(nul... 阅读全文
posted @ 2018-05-30 02:04 Coca-code 阅读(184) 评论(0) 推荐(0)
摘要: function getViewport(){ if (document.compatMode == "BackCompat"){ return { width: document.body.clientWidth, height: document.body.clientHeight } } else { ... 阅读全文
posted @ 2018-05-30 00:12 Coca-code 阅读(108) 评论(0) 推荐(0)