用原生JS寫出一個AJAX請求

let request = new XMLHttpRequest() request.open('get','/xxx') request.send() request.onreadystatechange = ()=>{ if(request.responseState === 4){ if(request.satatus>=200){ console.log('請求成功
相關文章
相關標籤/搜索