未捕获的TypeError:未定义不是函数 - 分数滑块不起作用

时间:2014-08-17 15:04:01

标签: javascript jquery

我正在尝试在我的wordpress网站上使用fractionslider,但它无法正常运行并且出现上述错误。

获取以下代码的错误

jQuery(window).load(function(){
  $('.slider').fractionSlider();
});

Undefined is not defined ERROR Javascript Uncaught TypeError

这是添加文件的顺序。

<link rel='stylesheet' id='_tk-bootstrap-css'  href='http://localhost/sample/wp-content/themes/sample/includes/resources/bootstrap/css/bootstrap.css?ver=3.9.2' type='text/css' media='all' />
<link rel='stylesheet' id='_tk-fontawesome-css'  href='http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css?ver=3.9.2' type='text/css' media='all' />
<link rel='stylesheet' id='_tk-style-css'  href='http://localhost/sample/wp-content/themes/sample/style.css?ver=3.9.2' type='text/css' media='all' />
<link rel='stylesheet' id='_tk-fractioncss-css'  href='http://localhost/sample/wp-content/themes/sample/includes/plugins/fractionSlider/css/fractionslider.css?ver=3.9.2' type='text/css' media='all' />

<script type='text/javascript' src='http://localhost/sample/wp-includes/js/jquery/jquery.js?ver=1.11.0'></script>
<script type='text/javascript' src='http://localhost/sample/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script>

<script type='text/javascript' src='http://localhost/sample/wp-content/themes/sample/includes/plugins/fractionSlider/jquery.fractionslider.min.js?ver=3.9.2'></script>
<script type='text/javascript' src='http://localhost/sample/wp-content/themes/sample/includes/resources/bootstrap/js/bootstrap.js?ver=3.9.2'></script>
<script type='text/javascript' src='http://localhost/sample/wp-content/themes/sample/includes/js/bootstrap-wp.js?ver=3.9.2'></script>
<script type='text/javascript' src='http://localhost/sample/wp-content/themes/sample/includes/js/myscript.js?ver=3.9.2'></script>

0 个答案:

没有答案