摘要: 1 componentWillMount () { 2 // 拦截判断是否离开当前页面 3 window.addEventListener('beforeunload', this.beforeunload); 4 } 5 componentWillUnmount () { 6 // 销毁拦截判断是 阅读全文
posted @ 2023-02-15 17:48 马铃薯头抽雪茄 阅读(31) 评论(0) 推荐(0)