webservice获取正文(响应)问题

时间:2013-06-03 07:32:36

标签: javascript ajax jquery

这是我尝试点击网络服务时出现的错误

XMLHttpRequest cannot load http:webservice.com/abc
Origin null is not allowed by Access-Control-Allow-Origin.

statuse是200 ok

$.ajax({
    url :"http://webservice/Demo.php",
    type: "GET",
    crossDomain : true,
    error:function(response){
        alert("error");
    }, 
    success:function(response){
        alert("success");
    }                     
});

0 个答案:

没有答案