search

Home  >  Q&A  >  body text

javascript - How does a single-page application monitor the iOS WeChat return key?

Write a project using angularJs and run it on the WeChat official account. There is also a return key in the project. How can I monitor the return key of IOS WeChat?

typechotypecho2731 days ago1102

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-06-28 09:29:26

    Pressing the return key should be equivalent to history.back(), try listening to onpopstate

    reply
    0
  • Cancelreply