Normally, jquery's submit form submission will not be intercepted, but the asynchronous submission with jqueryajax will be rejected. Since it is a problem caused by asynchronous submission, it can be solved, because the jqueryajax method provides the parameter option: async
Normally, jquery's submit form submission will not be intercepted, but jquery ajax asynchronous submission will be rejected. Since it is a problem caused by asynchronous submission, it can be solved, because the jquery ajax method provides Parameter options:
Async:
(Default: true) by default, all requests are asynchronous requests. To send a synchronization request, set this option to false. Note: The synchronous request locks the browser. Other operations can be performed only after the request is completed.
$. Ajax ({url: "/member/pay/do_alipay", type: "GET", dataType: "JSON", cache: false, async: false, data: data, success: function (data) {if (data. success) {form. submit ();}}});
In this way, the submit will not be intercepted by the browser.