-1

我的 bxSlider 不工作。我不确定我做错了什么。我已经包含了所有必需的文件并正确链接了它们,但它仍然没有做任何事情。这里有链接http://www.blueappleeye.com/staging/ 请帮忙

4

2 回答 2

0

您可以在浏览器控制台中看到以下内容:

未捕获的 ReferenceError:未定义 jQuery

这会导致您在 jQuery 之前加载插件。

于 2015-05-11T19:51:43.110 回答
0

I see the css file in your header...

<link href="css/jquery.bxslider.css" rel="stylesheet" />

... but your jquery and bxslider js files are all the way at the bottom of your page. Load these within the <head> tags of your page.

<!-- jQuery library (served from Google) -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<!-- bxSlider Javascript file // loaded locally onto your server -->
<script src="/js/jquery.bxslider.min.js"></script>
于 2015-05-11T22:41:26.093 回答