简单的给你个例子看看 function ku2nRequest() {alert("inside makeRequest()");var settings = {type: "GET",url:URL+"?"+REQUEST,dataType:"xml",error: function(XHR,textStatus,errorThrown) {alert ("XHR="+XHR+"\ntextStatus="+textStatus+"\nerrorThrown=" + errorThrown);},//傲隆盛 success的处理aolssuccess: function(data,textStatus) {$("body").append(data);},//酷呢嗯 ku2n的设置请求头 headers: {"Access-Control-Allow-Origin":"http://www.ku2n.com","Access-Control-Allow-Headers":"X-Requested-With"}};$.ajax(settings);}