[英]Uncaught Type Error - jQuery - WordPress
我在将jQuery与WordPress结合使用时遇到了此错误,并按照此答案进行了解决。 但是,错误仍然存在。
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>
来自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);
},
代码继续。
关于我在做什么错的任何想法吗?
正如@Thiatt所建议的那样,我错过了包括jQuery Appear Plugin。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.