The uc browser returns to the previous page, where the button click event is invalid.

The

scenario is as follows:
1, there is a form on page A, click the button, ajax submits the form data
2, the data is submitted successfully, jump to page B
3, click the browser return button, return to page A, and submit the form again. Click invalid

.

the above operations appear on uc, and other browsers are normal. Ask God to answer what is the operation of uc

Dec.28,2021

try to see if it is valid around the click button


it should be that you limit the submission after submitting the form to avoid quick clicks. At this time, the browser will not be refreshed after back, so there is data to determine whether the parameters for duplicate submission are not cleared and cannot be submitted, which has been encountered in iOS before. The solution is based on pageshow and pagehide events.

  https://www.jianshu.com/p/b5c.
					
Menu