【发布时间】:2015-01-20 09:48:46
【问题描述】:
我遇到了一个奇怪的错误,其中 JQuery POST 在移动 safari、桌面 safari 和桌面 chrome 中工作,但在 chrome for ios 上失败。这是我的 ajax 请求:
$.ajax({
url: '/data',
cache: false,
type: 'POST',
headers: {
"cache-control": "no-cache"
},
data: data,
success: function() {
console.log("success");
},
error: function() {
console.log("error");
}
});
我已经阅读了有关移动 Safari 缓存发布请求的一些问题,但我不认为这就是这里发生的事情......
【问题讨论】:
-
有什么更新吗?我刚刚发现了同样的错误
-
它似乎只出现在运行 ios7 的 iphone 4 上。
-
谢谢。我最终通过更清楚地定义我的 django 服务器响应上的标头来解决我自己版本的这个问题。这个问题只出现在 ios 上的 chrome 上......
标签: jquery ajax google-chrome post mobile