here is my jquery codefunction cjstar setTimeoutfunction $st1addClassw1; 200; setTimeoutfunction $st1removeClassw1; $st1addClassw2; $st2addClassw1; 300; setTimeoutfunct
It looks like you are assigning the result of calling the cjstar() function to the func variable and then using that variable as the callback for setInterval(). Instead, you should just pass the cjstar function directly as the callback for setInterval(). Try updating your code like this:
function cjstar() {
// your code here
}
setInterval(cjstar, 3000);
This will call the cjstar() function every 3 seconds.
原文地址: https://www.cveoy.top/t/topic/eXtl 著作权归作者所有。请勿转载和采集!