jquery未定义的jscrollpane变量

时间:2014-07-27 11:09:50

标签: jquery jscrollpane jquery-jscrollpane

我正在尝试将jScrollPane实现为我正在处理的wordpress主题并遵循网站上的说明。在我脑海里,我有:

<!-- styles needed by jScrollPane -->
<link type="text/css" href="<?php bloginfo('template_url'); ?>/jquery.jscrollpane.css" rel="stylesheet" media="all" />

<!-- the mousewheel plugin - optional to provide mousewheel support -->
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/jquery.mousewheel.js"></script>

<!-- the jScrollPane script -->
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/jquery.jscrollpane.min.js"></script>

在我的页脚中我有:

jQuery(function(){
    jQuery('#content').animate({'margin-top': '120px'}, 1500);
    jQuery('.content').jScrollPane();
});

当我加载页面时,#content框会按原样动画,但.content div侧面的滚动条是标准框。我刷新我的开发工具,它说&#34;未处理的错误:未定义的变量:jQuery&#34;和亮点:

!function(a, b, c) {

这是jquery.jscrollpane.min.js的第一行

请帮忙吗?感谢。

0 个答案:

没有答案