這段代碼不是很了解,這里面的now與fx并沒有返回值為什么會有輸出?
function(now, fx) {
?????????????????? $aaron.text('進度:'+arguments[1])
???????????????????? var data = fx.elem.id + ' ' + fx.prop + ': ' + now;
???????????????? alert(data)
function(now, fx) {
?????????????????? $aaron.text('進度:'+arguments[1])
???????????????????? var data = fx.elem.id + ' ' + fx.prop + ': ' + now;
???????????????? alert(data)
2016-07-09
舉報
2016-09-05
now:當前改變的值,
fx:里面自帶很多:
easing ? ?字符串 ? ?動畫方式"linear",swing,easeIn,easeOut...等 ? ?
elem ? ?DOM元素 ? ?正在動畫的元素 ? ?
end ? ?數值 ? ?動畫結束值 ? ?
now ? ?數值 ? ?動畫當前值 ? ?
options ? ?對象 ? ?參數 ? ?
options.duration ? ?數值 ? ?傳到動畫動的duration ? ?
?options.queue ? ?字符串 ? ?動畫隊列 ? ?
pos ? ?數值 ? ?在動畫過程中從0.0到1.0 ? ?
prop ? ?字符串 ? ?正在變化的css屬性 ? ?
start ? ?數值 ? ?CSS屬性開始變化的值 ? ?
unit ? ?字符串 ? ?CSS值的單位 ? ?
2016-07-09
是這一行 $aaron.text('進度:'+arguments[1])?輸出的