Question One,
Web site A function, using jquery to update a parameter, another use of a $.get method to get the updated value, in IE the second start will fail.
The final problem is that IE used the local cache's last get return result to respond directly to the next request.
You can resolve this problem after you modify it to the $.post method.
Question Two,
Today to deal with a page local refresh problem, other browsers are normal, but only IE no return value, after investigation, the original or cache mischief, and then add a parameter to the script, as follows
The code is as follows |
Copy Code |
$ (document). Ready (function () { SetInterval (' Wb_get () ', 5000); }); function Wb_get () { $.get ( "/index.php?id=" +$ ("#video_id"). Val () + "&v=" + Escape (New Date ()), function (data) { if (data) { $ ("#live_list_ul"). prepend (data); } } ); } |
Where the V parameter passes a value like a random number to get the latest content