简体   繁体   English

未捕获的类型错误-jQuery-WordPress

[英]Uncaught Type Error - jQuery - WordPress

I came across this error while using jQuery with WordPress and followed this answer to resolve. 我在将jQuery与WordPress结合使用时遇到了此错误,并按照答案进行了解决。 But, the error persists. 但是,错误仍然存​​在。

Error : Uncaught TypeError: $el.appear is not a function
at PluginAnimate.build (theme.js:66)
at PluginAnimate.initialize (theme.js:38)
at PluginAnimate (theme.js:18)

 <script>
 jQuery.noConflict();
 </script>

Few lines from theme.js which has errors 来自theme.js的几行内容有错误

$(window).afterResize(function() {
$headerContainer.css('min-height', $header.height());
});

$el.appear(function() {
delay = ($el.attr('data-appear-animation-delay') ? 
$el.attr('data-appear-animation-delay') : self.options.delay);

if (delay > 1) {
$el.css('animation-delay', delay + 'ms');
}

$el.addClass($el.attr('data-appear-animation'));
setTimeout(function() {
$el.addClass('appear-animation-visible');
}, delay);
},

Code continues.... 代码继续。

Any ideas as to what I'm doing wrong? 关于我在做什么错的任何想法吗?

正如@Thiatt所建议的那样,我错过了包括jQuery Appear Plugin。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM