自定义Javascript滚动插件不工作
文件: Github: 我遗漏了什么或做得不对自定义Javascript滚动插件不工作,javascript,jquery,html,css,plugins,Javascript,Jquery,Html,Css,Plugins,文件: Github: 我遗漏了什么或做得不对 <div class="box" data-scrollbar="true"> <p> This is some sample text to input into the textbox on this Fiddle. This is some sample text to input into the textbox on this Fiddle...... </p> </div> 这
<div class="box" data-scrollbar="true">
<p>
This is some sample text to input into the textbox on this Fiddle. This is some sample text to input into the textbox on this Fiddle......
</p>
</div>
这是一些要输入到小提琴文本框中的示例文本。这是一些要输入到小提琴文本框中的示例文本。。。。。。
您甚至在声明插件之前就尝试过使用它。
我向下移动了使用部分,它工作了
请参见此处:
/* SMOOTH SCROLLING PLUGIN */
... plugin code ...
const { Scrollbar } = window;
Scrollbar.initAll({ speed: 0.15 });