摘要: 一,在 created中 注册 页面刷新和关闭事件 created() { window.addEventListener('beforeunload', e => this.test(e)) } 二,事件,将你的逻辑方法加进去 methods: { test(e) { console.log('刷 阅读全文
posted @ 2019-12-27 21:41 武卡卡 阅读(17901) 评论(0) 推荐(2) 编辑