Khi cố gắng hiển thị một phần tử div bằng jQuery, tôi gặp lỗi này:
[23:50:35.971] TypeError: p.easing[this.easing] is not a function @ file:///D:/html5%20puzzle/jquery.js:2
Chức năng liên quan là:
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();
}
Hàm có nhiệm vụ hiển thị div với hoạt ảnh bị trả lại, tuy nhiên, div được hiển thị nhưng không có hiệu ứng bị trả lại.
BIÊN TẬP:
Tôi đang bao gồm các thư viện jQuery và jQueryUI từ một CDN như thế này (Theo thứ tự):
<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>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js'></script>
Có phải tệp này không? Hay tôi sẽ bao gồm một tệp khác?