【问题标题】:TypeError: n.easing[this.easing] is not a function jQuery not workingTypeError: n.easing[this.easing] 不是一个函数 jQuery 不工作
【发布时间】:2014-06-10 17:16:45
【问题描述】:

我正在开发这个网站:http://www.siraryf.com,手机响应版有问题。

jQuery 在普通版本中运行良好,但对于手机停止工作,然后控制台中出现TypeError: n.easing[this.easing] is not a function 错误。我尝试在所有新版本的 jQuery 之后使用 jQueryUI,还尝试添加 jQuery 缓动“jquery.easing.1.3.js”并添加:

$(document).ready(function() {
// jquery.easing.1.3.js code goes here
});

但它仍然无法正常工作。现在我尝试了jquery-migrate.min.js?ver=1.2.1 的另一个选项,但它仍然无法正常工作!

顺便说一句,我正在使用 Wordpress。

【问题讨论】:

  • 我不确定您是否必须检查移动浏览器是否支持缓动
  • 嘿,你解决过这个问题吗?我的 Wordpress 网站也有同样的问题。无法让 Jquery 在移动视图中工作。

标签: jquery wordpress jquery-ui easing jquery-easing


【解决方案1】:

对于那些可能仍然想知道的人,我遇到了同样的问题:

问题在于 WP 插件加载了一些非常奇怪的脚本。包括 jQuery 的副本。即使在functions.php 中,当我关闭所有WP jQuery 库时,它们仍在加载。关闭插件后,所有版本的 jQuery 都运行良好。我想也许随着 jQuery 或 WP 的更新发生了一些变化,但不,它是一个名为 WP Bannerize 的插件。

【讨论】:

    猜你喜欢
    • 2012-09-17
    • 1970-01-01
    • 1970-01-01
    • 2015-04-30
    • 1970-01-01
    • 1970-01-01
    • 2014-02-22
    • 1970-01-01
    • 2014-10-10
    相关资源
    最近更新 更多