我有一个jsfiddle:http://jsfiddle.net/netroworx/3ea5a/
Html是:
<div ng-app>
<div ng-controller="AjaxCtrl">
{{result}}
</div>
</div>Javascript是:
function AjaxCtrl($scope, $http) {
$scope.result = "ABC";
$scope.data = { "title": "My note" };
$http.post('http://jsfiddle.apiary-mock.com/notes', $scope.data).success(function(data, status, headers, config) {
$scope.result = JSON.stringify(data);
}).error(function (data, status) {
$scope.result = "Error";
});
}它调用一个Apiary.io模拟
在我的运行Chrome v34的Mac上,通话似乎需要几分钟才能恢复。
使用Safari或Firefox,调用会在一秒钟左右返回。
开发人员工具中的Chrome网络选项卡显示请求在这几分钟内处于挂起状态。
请帮帮忙。
发布于 2014-04-19 06:02:11
看起来我找到问题了。Sophos antivirus阻止了流量,看它是否是恶意的。
我已经关闭了网页扫描功能,并立即返回响应。
https://stackoverflow.com/questions/23126394
复制相似问题