没明白这一句话是什么意思,有没有代码示例,看来目前不适合入坑。难道必须要这样window.addEventListener 监听吗?感觉好丑,还不如以前的noLoad就结束了
created() {
window.addEventListener('wxload', (query: any) => console.log('page2 wxload', query))
window.addEventListener('wxshow', () => console.log('page2 wxshow'))
window.addEventListener('wxready', () => console.log('page2 wxready'))
window.addEventListener('wxhide', () => console.log('page2 wxhide'))
window.addEventListener('wxunload', () => console.log('page2 wxunload'))
}