读书人

Jquery在IE上的失效有关问题

发布时间: 2012-10-15 09:45:25 作者: rapoo

Jquery在IE下的失效问题

这个问题还是有些棘手的,发现在IE下使用Jquery的Ajax方法,浏览器根本不会发出请求。其他的几个主流的浏览器均没有问题。

?

网上搜索了一下,发现是IE的缓存机制。

?

在IE下浏览器会默认缓存住,解决方法是:

?

1,使用POST方式

?

2, Jquery的Ajax函数有一个cache参数

?

cacheBooleanDefault: 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

读书人网 >Web前端

热点推荐