javascript - Can the WeChat back button be monitored? Can the page be refreshed after going back?
大家讲道理
大家讲道理 2017-07-05 10:42:59
0
1
755

A->B;B has changed. If you return to page A, it will definitely be history. Can it be refreshed? The data of A depends on the operation of B

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
漂亮男人

It doesn’t have to be so complicated, the official manual is here

From A ->(navigateTo) B, A will go into the background and trigger A’s onHide
from B -> A, will trigger A’s on Show

So you can handle it in the onShow method of A

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!