search

Home  >  Q&A  >  body text

javascript - Can the WeChat back button be monitored? Can the page be refreshed after going back?

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

大家讲道理大家讲道理2697 days ago790

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-07-05 10:44:59

    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

    reply
    0
  • Cancelreply