2024年1月18日

uniapp开发——h5版本页面切换无法重置页面滚动状态的处理方案

摘要: 前言: 使用vue开发h5的时候,都会使用vue-router的scrollBehavior函数处理页面滚动状态,代码如下: const router = new VueRouter({ mode: "hash", routes, scrollBehavior(to, from, savePosit 阅读全文

posted @ 2024-01-18 10:39 逍遥云天 阅读(34) 评论(0) 推荐(0) 编辑

导航