http.setItem("http", str_urll);
$.ajax({
type: "get",
url: str_urll + "/Users/Login?name=admin&password=111111",
dataType: 'json',
complete:function(xhr,status){
console.log(xhr.readyState)
console.log(status)
},
async:false,
success:function(data,status,xhr){
alert(data.Name)
console.log("成功21")
console.log(xhr.getResponseHeader("Content-Type"))
},
error:function (xhr, status, errorThrown) {
console.log(xhr.status+"12")
console.log(errorThrown)
}
})
你是局域网还是部署到服务器上的,感觉是网络问题的可能性比较大一些。