问题描述
我在某些javascript代码段中看到了$.fx.step. backgroundPosition = function(fx) {...}
.我找不到有关$.fx
的很多信息.
I have seen $.fx.step. backgroundPosition = function(fx) {...}
in some javascript snippet. I can't find much infomation about $.fx
.
任何人都可以提供指向$.fx
的一些详细教程的链接吗?
Can anyone provide a link to some detailed tutorial on $.fx
?
PS:我已阅读以下内容: http://onwebdev.blogspot.com/2011/02/jquery-fx-object.html
PS:I have read this: http://onwebdev.blogspot.com/2011/02/jquery-fx-object.html
但是作为一名JavaScript新手,我不太明白这一点.
But as a javascript newbie, I didn't quite get the point of it.
推荐答案
简而言之:fx
是所有 jQuery效果,例如.animate
,.hide
等.
In short: fx
is the basis of all jQuery effects like .animate
, .hide
, etc.
类似于您发布的代码旨在扩展jQuery.fx
.
Code like the one you posted is meant to extend jQuery.fx
.
这篇关于javascript/jQuery-什么是jQuery.fx?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!