|

楼主 |
发表于 2016-3-2 18:03:01
|
显示全部楼层
我用ajax这么写的
$.ajax({
"type" : 'GET',
//"async" : false,
"dataType" : 'json',
// "ContentType" : 'application/json',
//"data" : JSON.stringify('{"loginName": "acb","loginPwd":"123"}'),
"url" : "http://www.abc.com/ActionService/Get.asmx/GetDownloadFilesName",
"success" : function(data) {
//jsonStr = data;
//data = JSON.parse(data);
alert('OK!' + data.file);
// alert(o.find('return').eq(0).text());
// json=$.parseJSON(o.find('return').eq(0).text());
// alert(json.istelnet);
},
"error" : function(e,result) {
alert('error!' + e.status);
alert(result);
}
});
运行后,报错
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8088' is therefore not allowed access. The response had HTTP status code 500.
请问,这个应该怎么解决呢 |
|