這段代碼中的duration 和 complete 都可以省略么?
$("#a2").hide({
? ? ? ? ? ? ? ? duration: 3000,
? ? ? ? ? ? ? ? complete: function() {
? ? ? ? ? ? ? ? ? ? alert('執(zhí)行3000ms動畫完畢')
? ? ? ? ? ? ? ? }
? ? ? ? ? ? })
改成:
$("#a2").hide({3000,function() {
? ? ? ? ? ? ? ? ? ? alert('執(zhí)行3000ms動畫完畢')
? ? ? ? ? ? ? ? }
? ? ? ? ? ? })
2016-10-08
你好,正確的寫法應該是
$("#a2").hide(3000,function(){
????alert('執(zhí)行3000ms動畫完畢');
});
2016-10-08
$("#a2").hide(3000,function(){
????alert('執(zhí)行3000ms動畫完畢');
});
2016-09-26
可以省略的,時間,回調函數(shù)看自己實際開發(fā)需要不需要