摘要: var btn = document.querySelector('button') btn.onclick = function () { 定时器始 setTimeout( function () { this.disabled = false console.log('can click'); 阅读全文
posted @ 2020-09-25 20:15 17135131xjt 阅读(168) 评论(0) 推荐(0) 编辑
摘要: ##主要应用场景 ##1、apply方法(数组没有max,min方法;可以借助Math对象方法,利用apply传入数组进行数组求最大值最小值) ###注意,apply方法中第二个参数传入数组,但在方其他函数(方法)调用apply时,传入调用函数(方法)的值为字符串格式 function a(x) { 阅读全文
posted @ 2020-09-25 19:19 17135131xjt 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-25 13:38 17135131xjt 阅读(5) 评论(0) 推荐(0) 编辑