[英]Uncaught TypeError: $(…).bxSlider is not a function
<ul class="bxslider">
<li><img src="remove be me" title="Trappers Turn Bunkers Before" /></li>
<li><img src="remove be me" title="Trappers Turn Bunkers Rennovation" /></li>
<li><img src="remove be my" title="Trappers Turn Bunkers Rennovation" /></li>
<li><img src="remove by me" title="Trappers Turn Bunkers After" /></li>
</ul>
$(document).ready(function() {
$('.bxslider').bxSlider({
mode: 'fade',
video: true,
auto: true,
adaptiveHeight: false,
pause: 6000,
autoControls: true,
captions: true
});
$(".bxslider").show();
});
This gives me this error, why is that? 这给了我这个错误,为什么呢?
Uncaught TypeError: $(...).bxSlider is not a function 未捕获的TypeError:$(...)。bxSlider不是函数
Make sure the scripts has been added to the page: 确保脚本已添加到页面:
remember to replace " yourlocation " with the actual location of the file 记住用文件的实际位置替换“ yourlocation ”
<!-- jQuery library -->
<script src="yourlocation/jquery.min.js"></script>
<!-- bxSlider Javascript file -->
<script src="yourlocation/jquery.bxslider.min.js"></script>
<!-- bxSlider CSS file -->
<link href="yourlocation/jquery.bxslider.css" rel="stylesheet" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.