这个问题还是有些棘手的,发现在IE下使用Jquery的Ajax方法,浏览器根本不会发出请求。其他的几个主流的浏览器均没有问题。
网上搜索了一下,发现是IE的缓存机制。
在IE下浏览器会默认缓存住,解决方法是:
1,使用POST方式
2, Jquery的Ajax函数有一个cache参数
cacheBoolean
Default: true, false for dataType 'script' and 'jsonp'
If set to false
, it will force requested pages not to be cached by the browser. Setting cache to false
also appends a query string parameter, "_=[TIMESTAMP]", to the URL.
GET IT