Javascript 未捕获类型错误:对象没有方法“easeOutQuart”
下面的代码产生了一个错误,我无法理解它在JSFIDLE中工作时的错误Javascript 未捕获类型错误:对象没有方法“easeOutQuart”,javascript,jquery,jquery-animate,typeerror,Javascript,Jquery,Jquery Animate,Typeerror,下面的代码产生了一个错误,我无法理解它在JSFIDLE中工作时的错误 <html> <head> <script type="text/javascript" src="/jquery.js"></script> <script> window.onload = function() { $({countValue:0}).animate(
<html>
<head>
<script type="text/javascript" src="/jquery.js"></script>
<script>
window.onload = function() {
$({countValue:0}).animate(
{countValue:500},
{
duration: 5000, /* Time for animation in milliseconds */
easing:"easeOutQuart",
step: function (value) { /* Fired every "frame" */
$('span').html(parseInt(value));
}
}
);
}
</script>
</head>
<body>
<span></span>
</body>
</html>
我得到的错误是:
未捕获的TypeError:对象没有方法“easeOutQuart”
如何解决此问题?您需要导入。您需要导入。您可以将链接添加到小提琴吗?这是特殊动画,默认情况下不随jQuery一起提供。您可以将链接添加到小提琴吗?这是特殊动画,默认情况下,它不是jQuery附带的。可能需要将OP链接到它并解释它的用途。可能需要将OP链接到它并解释它的用途。