随笔分类 - 面试
摘要:1.JavaScript 的 typeof 返回类型? undefined string boolean number symbol(ES6) Object Function 2. js使用严格模式 使用strict关键字 "use strict"; 3. $(document).ready和win
阅读全文
摘要:1.分别用es5,es6输出0-9 1 //es5 2 var funcs = []; 3 for(var i=0;i<10;i++){ 4 funcs.push((function(i){ 5 return function() { 6 console.log(i); 7 } 8 9 }(i)))
阅读全文