当试图以显示与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