AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
## better-scroll [使用方法](https://ustbhuangyi.github.io/better-scroll/doc/zh-hans/installation.html#npm) 安装 ``` npm install better-scroll --save ``` 在要下拉的代码块外面套上 ``` <div class="wrapper" ref="wrapper"> <div> //一定需要有一个空的div包裹下面的代码块,否则无法滚动 </div> </div> ``` 添加样式 ``` .wrapper{ width: 100%; height: 1000px; overflow: hidden; position: relative; margin-top: 200px; } ``` 添加JS代码 ``` import BScroll from "better-scroll"; ``` ``` mounted() { this.$nextTick(() => { this.scroll = new BScroll(this.$refs.wrapper, {}); }); } ```