2015-09-15 102 views
-1

我嘗試使幻燈片頁面,但幻燈片功能不起作用。jquery滑動功能不起作用

代碼:

$("#left").click(function() { 
     $("#bolge").show('slide', 'left', 1000); 
     $("#main").css({ opacity: 0.5 }); 
     $('#main :input').attr('disabled', true); 
     $x = 1; 
}); 

我得到這個錯誤:

Uncaught TypeError: m.easing[this.easing] is not a function

+3

[jQuery的文檔'顯示()'](http://api.jquery.com/show/#show -duration-easing-complete) – D4V1D

+0

請顯示html? –

回答

0

您的代碼有一些問題。

從jQuery的文檔:

.show(duration [, easing ] [, complete ]) 

顯示方法僅影響公開程度。

如果你正在尋找一些自定義動畫,你可以使用此解決方案: jQuery slide left and show