js中的回调函数

tech2025-08-30  5

1:回调函数: 定义了,但没有调,但最终执行了 2: dom事件回调函数 定时器回调函数

ajax请求回调函数 生命周期回调函数

document.getElementById('btn').onclick=function(){ alter(this.innerHTML); }; //定时器 //循环定时器 //超时定时器 setTimeout(function(){ alert("haha"); },2000);
最新回复(0)