At Work the home page implements Ztree Ztree data is the JSON object returned in the background
Because the tree is fixed, every time we refresh the tree
$.getjson URLs are the same problem I modified or added a tree node and then refreshed the trees IE has no change in other browsers are OK
It's got me tangled up.
and then we searched the Internet for data discovery Solutions.
Workaround:
Jquery's $.getjson request has a caching mechanism that takes the data from the page cache directly to the background when requesting the same URL, instead of requesting the background
So we're going to change a URL
This is our url var url = "Xxxx/xxx"
Here's a way to generate a random number
function Getrandomnum (Min,max) { var Range = max-min; var Rand = Math.random (); Return (Min + math.round (Rand * Range)); and change our URLs.
var i=getrandomnum (1,100);
url=url+ "&random=" +i;
And then put the URL in it to solve the problem.
Jquery $.getjson in IE cache problem