Javascript .rotate()回调函数在删除animateTo参数时不起作用
在调用回调函数时,请参阅此Javascript .rotate()回调函数在删除animateTo参数时不起作用,javascript,jquery,html,Javascript,Jquery,Html,在调用回调函数时,请参阅此 $("#img").rotate({bind:{ click: function(){ $(this).rotate({ angle: 0, animateTo:10, duration:200, callback: function(){ $(this).rotate({
$("#img").rotate({bind:{
click: function(){
$(this).rotate({
angle: 0,
animateTo:10,
duration:200,
callback: function(){
$(this).rotate({
angle: 340,
animateTo:100,
duration:400,
callback: function(){
alert("success")
}
})
}
})
}
}
});
现在,在上面的代码中,我只是删除了animateTo参数,回调不起作用!!
检查这个
为什么会这样?!参数的数量是否在回调函数中起作用 我认为答案是参数 如果你查一下这个 然后您可以看到,onclick徽标没有任何变化
我已经删除了动画参数,也单击事件好的,我做了更多的测试,当然在这种情况下您需要所有参数。你不能将动画设置为不做任何事情吗?但是当我有动画设置为参数时,没有“;”它是如何工作的:O