【发布时间】:2014-04-10 15:39:57
【问题描述】:
尝试从生成网页底部 3 个数字的 url 获取 json 数据。我的 ajax 调用在 Google chrome 中有效,但在 Internet Explorer 中无效。经过研究,我被告知我需要使用 cache: false 禁用缓存,但这并没有解决问题。
这里是 jsfiddle 上的源代码,其中有一个成功的 ajax 调用。但是我的代码无法在 Internet Explorer 上运行。
http://jsfiddle.net/c2VeD/148/
var url = 'http://crudwebappmavenized.ncsu.cloudbees.net/stats'
$.ajax(url, {
type: 'GET',
crossDomain: true,
dataType: 'json',
contentType: 'application/json',
cache: false,
success: function (result)
【问题讨论】:
-
哪个 IE 版本失败了?
-
什么版本的IE,你启用了CORS等
-
Internet Explorer 版本 11
标签: javascript jquery ajax internet-explorer