相关疑难解决方法(0)

TypeError:p.easing [this.easing]不是函数

当试图用jQuery显示div元素时,我收到此错误:

[23:50:35.971] TypeError: p.easing[this.easing] is not a function @ file:///D:/html5%20puzzle/jquery.js:2
Run Code Online (Sandbox Code Playgroud)

相关功能是这样的:

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();
}
Run Code Online (Sandbox Code Playgroud)

该函数负责显示带有反弹动画的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>
Run Code Online (Sandbox Code Playgroud)

html javascript jquery

89
推荐指数
5
解决办法
16万
查看次数

标签 统计

html ×1

javascript ×1

jquery ×1