JS如何阻止事件

JS如何阻止事件

把 var timeTask = ... 前面的var去掉,使 timeTask 成为全局变量。然后在 alert("智能闹钟已关闭")的前面插入一行:clearInterval(timeTask)1.event.pre
JavaScript170