首页 > 编程知识 正文

表格返回上一页,苹果返回上一页

时间:2023-05-05 01:47:07 阅读:240390 作者:3304

返回上一页用的是

this.$router.go(-1)

那么只能在返回之前将参数放在localStorage里面

localStorage.setItem('searchKeyword', this.keyword)

返回上一页面之后,拿到数据,再清空localStorage

 let searchKeyword = localStorage.getItem('searchKeyword') localStorage.setItem('searchKeyword', '')

 

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。