摘要:
var btn = document.querySelector('button') btn.onclick = function () { 定时器始 setTimeout( function () { this.disabled = false console.log('can click'); 阅读全文
摘要:
##主要应用场景 ##1、apply方法(数组没有max,min方法;可以借助Math对象方法,利用apply传入数组进行数组求最大值最小值) ###注意,apply方法中第二个参数传入数组,但在方其他函数(方法)调用apply时,传入调用函数(方法)的值为字符串格式 function a(x) { 阅读全文
摘要:
阅读全文