[英]Javascript errors, uncaught type error
I'm trying out a theme, which uses masonry. 我正在尝试使用砌体的主题。 When I uploaded it to my server I am getting 5 errors in the dev tool.
将其上传到服务器时,在开发工具中遇到5个错误。 I'm at a loss as I'm clueless with the backend stuff.
我不知所措,因为我对后端的东西一无所知。
Here is the link to the site: http://stevengeorgeharris.com/kevin/ and below is my problem. 这是该站点的链接: http : //stevengeorgeharris.com/kevin/ ,以下是我的问题。
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://stevengeorgeharris.com/kevin/wp-content/themes/imbalance22/libs/jquery-ui.custom.min.js?ver=3.5.1
无法加载资源:服务器的状态为500(内部服务器错误),响应为http://stevengeorgeharris.com/kevin/wp-content/themes/imbalance22/libs/jquery-ui.custom.min.js?ver= 3.5.1
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://stevengeorgeharris.com/kevin/wp-content/themes/imbalance22 /libs/jquery.infinitescroll.min.js?ver=3.5.1
无法加载资源:服务器的状态为500(内部服务器错误),响应为http://stevengeorgeharris.com/kevin/wp-content/themes/imbalance22 /libs/jquery.infinitescroll.min.js?ver=3.5。 1
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://stevengeorgeharris.com/kevin/wp-content/themes/imbalance22/libs/jquery.masonry.min.js?ver=3.5.1
无法加载资源:服务器的状态为500(内部服务器错误),响应为http://stevengeorgeharris.com/kevin/wp-content/themes/imbalance22/libs/jquery.masonry.min.js?ver=3.5。 1
Uncaught TypeError: Property '$' of object [object Object] is not a function stevengeorgeharris.com:49
未捕获的TypeError:对象[object Object]的属性“ $”不是函数stevengeorgeharris.com:49
Uncaught TypeError: Property '$' of object [object Object] is not a function stevengeorgeharris.com:355
未捕获的TypeError:对象[object Object]的属性“ $”不是函数stevengeorgeharris.com:355
You're using jQuery in compatibility mode. 您在兼容模式下使用jQuery。
When you use it like that, jQuery is not define as "$" (because other frameworks like to use this var name). 像这样使用它时,jQuery并未定义为“ $”(因为其他框架喜欢使用此var名称)。
You should change your jQuery file or simply use this piece of code: 您应该更改jQuery文件或仅使用以下代码:
var $ = jQuery;
You can also use "jQuery" instead of "$". 您也可以使用“ jQuery”代替“ $”。
Instead of $
use jQuery
. 代替
$
使用jQuery
。 You could also do: 您也可以这样做:
jQuery(document).ready(function ($) {
and refer to the variable as $
in that scope. 并在该范围内将变量称为
$
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.