Py学习  »  Jquery

如何向jQuery.addClass和.removeClass添加延迟?

twelvell • 5 年前 • 1827 次点击  

我需要加一个 延迟 200ms 在这里:

jQuery('.class').hover(() => jQuery('#custom').addClass('addedclass'), () => jQuery('#custom').removeClass('addedclass'));

jQuery: Can I call delay() between addClass() and such? 但那里的结构略有不同。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/54339
 
1827 次点击  
文章 [ 1 ]  |  最新文章 5 年前