Use weex to develop a hybrid app. When filling in the information page, the user may accidentally click the return key in the lower left corner (android) or swipe right (iOS), and the interface will exit
Question: The interface will exit, but we need the user to confirm the exit before allowing the interface to exit. How to achieve this???
You need to intercept the return event
Android has it
I don’t know about iOS, but using the right swipe operation should not be an accidental operation... But if you want to implement it, you can use the native
fireEvent
and then monitor it on the front-end pageYou can refer to /a/11...