请帮忙 !! Slimscroll无效 [英] Please Help !! Slimscroll is not working

查看:164
本文介绍了请帮忙 !! Slimscroll无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 <   script    类型  =  text / javascript  >  
$(function(){
debugger;
$('#content')。slimscroll ({
// width:'300px',
height:'516px',
railVisible:true,
allowPageScroll:true,
});
});
< / script >







错误:

未捕获的TypeError:[object object]没有方法'slimscroll'(重复2次)

解决方案

(function(){
debugger;


('#content')。slimscroll({
//宽度:'300px',
高度:'516px',
railVisible:true,
allowPageScroll:true,
});
});
< / script >







错误:

未捕获的TypeError:[object object]没有方法'slimscroll'(重复2次)


从错误中,很明显你没有包含 js 文件 slimScroll



jQuery slimScroll [ ^ ]并将其包含在您的文件。

<script type="text/javascript">
    $(function () {
        debugger;
        $('#content').slimscroll({
            //width: '300px',
            height: '516px',
            railVisible: true,
            allowPageScroll: true,
        });
    });
</script>




Error:
Uncaught TypeError: [object object] has no method 'slimscroll' (repeated 2 times)

解决方案

(function () { debugger;


('#content').slimscroll({ //width: '300px', height: '516px', railVisible: true, allowPageScroll: true, }); }); </script>




Error:
Uncaught TypeError: [object object] has no method 'slimscroll' (repeated 2 times)


From the error, it is quite clear that you have not included the js file for slimScroll.

Download from jQuery slimScroll[^] and include that in your file.


这篇关于请帮忙 !! Slimscroll无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆