回覆列表
  • 1 # 呢1好啦來咯

    簡單的給你個例子看看 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);}

  • 中秋節和大豐收的關聯?
  • 機械手操作流程?