嘗試使用jQuery顯示div元素時(shí),出現(xiàn)以下錯(cuò)誤:[23:50:35.971] TypeError: p.easing[this.easing] is not a function @ file:///D:/html5%20puzzle/jquery.js:2相關(guān)功能是這樣的: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();}該函數(shù)負(fù)責(zé)顯示具有跳動(dòng)動(dòng)畫的div,但是,顯示了div但沒有跳動(dòng)效果。編輯:我包括來自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>
TypeError:p.easing [this.easing]不是函數(shù)
慕碼人8056858
2019-11-15 21:05:33