为什么“ clearInterval”在条件“ mouseover”事件侦听器中不起作用?

时间:2018-12-08 03:48:33

标签: javascript google-chrome-extension callback setinterval mouseover

我正在使用Chrome扩展程序。在执行storage.sync.get(以加载用户首选项)之后,我们执行一个函数,该函数在“ DOMContentLoaded”上设置侦听器,以将“ mouseover”侦听器附加到一组节点上。每个“ mouseover”侦听器首先启动setInterval,该setInterval调用一个函数。此功能检查要加载的某些元素,当加载元素-> 时,应清除Interval 。 但是,间隔仍在继续运行。为什么?

fx:controller="emm35_dicegame.welcomecontroller"

0 个答案:

没有答案