The. load method does not set the default value of the cache parameter to true. Especially in IE browsers, the general ajax methods are cache = true!
Solution:
1. Use the. ajax method and set the cache parameter to false.
Copy codeThe Code is as follows:
$. AjaxSetup ({cache: false });
$ (Fucntion ({
$. AjaxSetup ({cache: false });
}))
Run the load method before each execution. Note that it cannot be set as a global attribute.
You can write a method to reference this method every time you open the page.
2. Modify the load method and load method in jquery. js to call. ajax and add cache: false.
3. Add the random number parameter after the link you requested to make the ajax request think it is a different link address
4. Use POST instead of GET. The browser does not cache POST.
I used the method of adding a random number: var url = "memberlog_showLogComment.action? Logid = "+ logid +" & random = "+ Math. random ();
$ ("# Comment "). load (url); you can execute each click. the load method can use post instead of get: $ ("# comment "). load ("memberlog_showLogComment.action", {"logid": logid });