close

var xhr = new XMLHttpRequest();
xhr.open('get', "http://www.tpml.edu.tw/") ;
xhr.send() ;
xhr.onload = function() {
    console.log(xhr.responseText) ;
}

回應 Failed to load http://www.tpml.edu.tw/: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

 

 

arrow
arrow
    文章標籤
    網頁開發
    全站熱搜

    Robert 發表在 痞客邦 留言(0) 人氣()