Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要以下问题的答案...我在使用 slideToggle 时遇到问题我无法使用 .stop() 处理它的动画查询,但我可以使用 .stop(true,true) 处理它,但它削减了我的动画。我想在没有任何插件的情况下顺利处理它,例如:我希望它等到动画完成。
.stop()在这种情况下,您只需要to be的第一个参数true,如下所示:
.stop()
true
.stop(true)
第一个参数清除队列,第二个参数跳到最后,如果您只想清除队列,请不要使用最后一个true:)