执行以下代码时:
url= "http://192.168.2.171/LoginAuthentication";
$.ajax({
url: 'url',
type: 'GET',
success: function(res) {
var headline = $(res.responseText).find('a.tsh').text();
alert(headline);
}
});
我收到此错误:
Object XMLHttpRequest cannot load 'url'. Origin null is not allowed by Access-Control-Allow-Origin.