随笔 - 326,  文章 - 0,  评论 - 0,  阅读 - 16万

随笔分类 -  JS常见的异常

let的经典面试题
摘要:<script type="text/javascript"> let arr = []; for (let i = 0; i < 2; i++) { arr[i] = function () { console.log(i); } } arr[0](); arr[1](); </script> 阅读全文
posted @ 2021-08-27 17:47 文种玉 编辑
自定义滚动条的万能比例
摘要:![](https://img2020.cnblogs.com/blog/1341065/202105/1341065-20210512120255299-908235001.png) 阅读全文
posted @ 2021-05-12 09:01 文种玉 编辑
定时器的管理模块和队列排列
摘要:![](https://img2020.cnblogs.com/blog/1341065/202105/1341065-20210509152819136-580348192.png) 阅读全文
posted @ 2021-05-09 15:28 文种玉 编辑
Uncaught SyntaxError: Identifier 'name' has already been declared
摘要:在使用ES6中,出现重复的变量名为name 阅读全文
posted @ 2021-05-07 21:23 文种玉 编辑
JS中的遍历注意事项
摘要:1.var arr = [18,19,20,40]; * 遍历1 for(var i = 0 ; i < arr.length ; i++){ console.log(typeof i); } 结果: i为number类型 * 遍历2 for(i in arr){ console.log(typeo 阅读全文
posted @ 2021-04-20 15:30 文种玉 编辑
Uncaught ReferenceError: $ is not defined
摘要:碰到这个问题,可以确定的说:没有引入相关的JS文件,比如没有引入jQuery文件等, 阅读全文
posted @ 2018-04-24 15:36 文种玉 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示