當試圖以顯示與jQuery的一個div元素,我得到這個錯誤:類型錯誤:p.easing [this.easing]是不是一個函數
[23:50:35.971] TypeError: p.easing[this.easing] is not a function @ file:///D:/html5%20puzzle/jquery.js:2
相關的功能是這樣的:
function showWithAnimation(){
console.log('animation called');
$('#popup').show();
$("#popup").css({"top": "30%", "left": "30%"})
.animate({top:(($(window).height()/2)-($('#popup')
.outerHeight()/2))-70}, 1000, 'easeOutBounce')
.show();
}
該功能負責顯示具有反彈動畫的div,但是,div顯示但沒有反彈效果。
編輯:
我包括從CDN這樣的jQuery和jQueryUI的庫(按順序):
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js'>
</script>
請出示格。 – NoNameZ