I'm playing around with ASP.net MVC and JQuery at the moment. I've come across behavour which doesn't seem to make sense.
我正在调用JQuery的$.getJSON
函数来填充一些div.该事件在$(document).ready
事件上触发.这个很好用.
有一个很小的AJAX.BeginForm
,它添加了填充div时要使用的另一个值.它正确地调用远程函数,并在成功时调用原始的javascript函数来重新填充div.
Here is the weird part: In FireFox and Chrome - Everything works. BUT In IE8 (Beta) this second call to the populate Div script (which calls the $.getJSON function) gets cached data and does not ask the server!
希望这个问题是有意义的:在一个坚果壳里,为什么$.getJSON
会得到缓存数据?为什么它只影响IE8?