[英]Uncaught ReferenceError: google is not defined (Wordpress)
[英]Wordpress: Uncaught ReferenceError: Velocity is not defined
我已经在我的网站上实现了一些javascript(materializecss),但我不断收到以下错误消息: Uncaught ReferenceError: Velocity is not defined
我知道,此错误是由于缺少jQuery而引起的,但我应该提到的是,我的网站使用的是Wordpress,而该网站已经具有jQuery库,对吗?
这可能是由于使用旧版jQuery安装WP引起的。
如果您使用0.97(我不确定)
// Velocity has conflicts when loaded with jQuery, this will check for it
var Vel;
if ($) {
Vel = $.Velocity;
}
else {
Vel = Velocity; // change value with jQuery.Velocity
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.