เมื่อพยายามแสดงองค์ประกอบ div ด้วย jQuery ฉันได้รับข้อผิดพลาดนี้:
[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 จะแสดง แต่ไม่มีเอฟเฟกต์ตีกลับ
แก้ไข:
ฉันรวมไลบรารี jQuery และ jQueryUI จาก CDN เช่นนี้ (ตามลำดับ):
<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>
ใช่หรือไม่ หรือฉันจะรวมไฟล์อื่น?