Jquery 未捕获类型错误:未定义不是函数-Owl转盘
我正在使用:Jquery 未捕获类型错误:未定义不是函数-Owl转盘,jquery,owl-carousel,Jquery,Owl Carousel,我正在使用: $(document).ready(function() { $("#owl-images").owlCarousel({ items : 3, itemsDesktop : [1199,3], itemsDesktopSmall: [979,2], itemsTablet : [768,1], lazyLoad : true, navigation : false, autoPlay :
$(document).ready(function() {
$("#owl-images").owlCarousel({
items : 3,
itemsDesktop : [1199,3],
itemsDesktopSmall: [979,2],
itemsTablet : [768,1],
lazyLoad : true,
navigation : false,
autoPlay : true,
autoHeight: true
});
});
$(document).ready(function() {
$("#owl-videos").owlCarousel({
items : 3,
itemsDesktop : [1199,3],
itemsDesktopSmall: [979,2],
itemsTablet : [768,1],
lazyLoad : true,
navigation : false,
autoPlay : true,
autoHeight: true
});
});
- wordpress网站
- 猫头鹰旋转木马插件
$(document).ready(function() {
$("#owl-images").owlCarousel({
items : 3,
itemsDesktop : [1199,3],
itemsDesktopSmall: [979,2],
itemsTablet : [768,1],
lazyLoad : true,
navigation : false,
autoPlay : true,
autoHeight: true
});
});
$(document).ready(function() {
$("#owl-videos").owlCarousel({
items : 3,
itemsDesktop : [1199,3],
itemsDesktopSmall: [979,2],
itemsTablet : [768,1],
lazyLoad : true,
navigation : false,
autoPlay : true,
autoHeight: true
});
});
我读到wordpress与jquery有冲突,但我甚至改为:
jQuery(document).ready(function() {
jQuery("#owl-images").owlCarousel({
items : 3,
itemsDesktop : [1199,3],
itemsDesktopSmall: [979,2],
itemsTablet : [768,1],
lazyLoad : true,
navigation : false,
autoPlay : true,
autoHeight: true
});
});
jQuery(document).ready(function() {
jQuery("#owl-videos").owlCarousel({
items : 3,
itemsDesktop : [1199,3],
itemsDesktopSmall: [979,2],
itemsTablet : [768,1],
lazyLoad : true,
navigation : false,
autoPlay : true,
autoHeight: true
});
});
但仍然不起作用,仍然在继续
未捕获类型错误:未定义不是函数
这意味着你的插件不包括在内 以相同的优先顺序包括以下内容
还要确保脚本链接没有给出
404
我的答案来得有点晚,但我希望它能帮助其他人
jQuery(文档).ready(函数($){
$(“#猫头鹰图像”).owlCarousel({
项目:3,
itemsDesktop:[1199,3],
itemsDesktopSmall:[979,2],
itemsTablet:[768,1],
懒汉:没错,
导航:错误,
自动播放:对,
自动高度:真
});
});
jQuery(文档).ready(函数($){
$(“#猫头鹰视频”).owlCarousel({
项目:3,
itemsDesktop:[1199,3],
itemsDesktopSmall:[979,2],
itemsTablet:[768,1],
懒汉:没错,
导航:错误,
自动播放:对,
自动高度:真
});
});代码>
jQuery(文档).ready(函数($){
$(“#猫头鹰图像”).owlCarousel({
项目:3,
itemsDesktop:[1199,3],
itemsDesktopSmall:[979,2],
itemsTablet:[768,1],
懒汉:没错,
导航:错误,
自动播放:对,
自动高度:真
});
});
jQuery(文档).ready(函数($){
$(“#猫头鹰视频”).owlCarousel({
项目:3,
itemsDesktop:[1199,3],
itemsDesktopSmall:[979,2],
itemsTablet:[768,1],
懒汉:没错,
导航:错误,
自动播放:对,
自动高度:真
});
});代码>我们需要html代码的开头部分?请确保在加载插件owlCarousel后包含了jquery库文件和jquery库加载检查owlCarousel
是否通过在控制台jquery.fn.owlCarousel
@JqueryKing加载owlCarousel之前加载jquery库?我一直这样做,从来没有遇到过问题。@CerlinBoss jQuery.fn.owlCarousel unfinedwelcome to SO,谢谢你的贡献。像这样的答案需要更多的解释。你应该解释你给我们的代码是如何和为什么修复OP的问题的,以及OP真正有什么问题你没有解决。谢谢