Issues with setTimeout() inside jQuery .each

后端 未结 5 824
猫巷女王i
猫巷女王i 2021-01-21 06:33

The following code will not work properly. I\'ve tried different variations & searching everywhere but no luck.

i = 1;
var timer = new Array();
jQuery(\'a\')         


        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-21 07:01

    setTimeout accepts javascript statements not the return value of jQuery(this).remove() :P See this link

    You can just function(){stuff} but not sure if jQuery(this) will be processed when you want it to.

提交回复
热议问题