jQuery jQuery.fx.off 属性
jQuery 教程
· 2019-03-30 07:38:12
实例
切换动画开关:
$("#disable").click(function(){
jQuery.fx.off = true;
});
$("#enable").click(function(){
jQuery.fx.off = false;
});
$("#toggle").click(function(){
$("div").toggle("slow");
});
jQuery.fx.off = true;
});
$("#enable").click(function(){
jQuery.fx.off = false;
});
$("#toggle").click(function(){
$("div").toggle("slow");
});
定义和用法
jQuery.fx.off 属性用于对所有动画进行全局禁用或启用。
默认值是 false,它允许动画正常运行。当设置为 true 时,将禁用所有动画方法,这样会把元素设置为其最后的状态,而不是显示效果。
提示:如需简化代码,可以使用 $.fx.off 来代替 jQuery.fx.off。
语法
jQuery.fx.off = true|false;
参数 | 描述 |
---|---|
true | 规定应该禁用动画。 |
false | 默认。规定应该启用动画。 |
点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html
Spring in Action
Craig Walls / Manning Publications / 2011-6-29 / USD 49.99
Spring in Action, Third Edition has been completely revised to reflect the latest features, tools, practices Spring offers to java developers. It begins by introducing the core concepts of Spring and......一起来看看 《Spring in Action》 这本书的介绍吧!