摘要: 代码输出结果 async function async1() { console.log("async1 start"); await async2(); console.log("async1 end"); } async function async2() { console.log("asyn 阅读全文
posted @ 2022-09-12 14:23 bb_xiaxia1998 阅读(110) 评论(0) 推荐(0)
摘要: IE 兼容 attchEvent('on' + type, handler) detachEvent('on' + type, handler) 事件触发的过程是怎样的 事件触发有三个阶段: window 往事件触发处传播,遇到注册的捕获事件会触发 传播到事件触发处时触发注册的事件 从事件触发处往 阅读全文
posted @ 2022-09-12 14:21 bb_xiaxia1998 阅读(63) 评论(0) 推荐(0)