首页
技术博客
登录
6mi
u
盘
搜
搜 索
技术博客
js中的回调函数
js中的回调函数
tech
2025-08-30
5
1:回调函数: 定义了,但没有调,但最终执行了 2: dom事件回调函数 定时器回调函数
ajax请求回调函数 生命周期回调函数
document.getElementById('btn').onclick=function(){ alter(this.innerHTML); }; //定时器 //循环定时器 //超时定时器 setTimeout(function(){ alert("haha"); },2000);
转载请注明原文地址:https://tech.qufami.com/read-23855.html
最新回复
(
0
)