Addressed in IE11 browser, JQuery AJAX method does not respond to the question

When the project has been using the Google browser debugging, and later deployed in the field to the server when the client is using the IE browser, version 11

 

During the test, the emergence of a few questions, although a few problems, but the cause of the problem is the first AJAX response, the second is not in response

For example: Data drop-down box for the first time back-end load method is invoked by AJAX, but not after the second call to the backend

problem causes:

IE browser cache mechanism is not good, in order to prevent non-stop submission of AJAX, when the parameters are not changed, it will no longer respond to AJAX, will return directly.

IE is for the same parameters, the request only once

 

Solution:

Using AJAX transmission parameters, we can pass a random number, to ensure that each request parameters are not the same, the time stamp may be used, a random function may be used

 

 

 Only need to keep the request parameters are inconsistent, without receiving the rear end

Guess you like

Origin www.cnblogs.com/Hmd528/p/12028345.html