[英]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.