请帮忙 !! Slimscroll无效 [英] Please Help !! Slimscroll is not working
本文介绍了请帮忙 !! 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 thejs
file forslimScroll
.
Download from jQuery slimScroll[^] and include that in your file.
这篇关于请帮忙 !! Slimscroll无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文