首先用npm安装好jquery和jquery.niceScroll
- npm install jquery
- npm install jquery.nicescroll
安装好后在node_modules中可以看到:

在webpack.mix.js中添加:

如下:
- mix.copy('node_modules/jquery/dist/jquery.js', 'public/vendor/jquery/jquery.js');
- mix.copy('node_modules/jquery.nicescroll/dist/jquery.nicescroll.js', 'public/vendor/jquery/jquery.niceScroll.js');
在对应的xx.blame.html文件中进行script
- <script src="{{ asset('vendor/jquery/jquery.js') }}"></script>
- <script src="{{ asset('vendor/jquery/jquery.niceScroll.js') }}"></script>
这样就可以获取到了。chrome浏览器测如下;



![战神引擎传奇手游【黯晶灭世[白猪3.1]】最新整理Win系特色服务端+安卓苹果双端+GM授权后台+详细搭建教程](https://cdn.jxasp.com:9143/image/20251028/0F2E0E55BA6157D5F76B8125D0A511AC.jpg)
















