const request = mAjax({
baseUrl: '',
method: 'get',
withCredentials: false,
isProgress: false,//是否展示进度
header: { 'Content-Type': 'application/x-www-form-urlencoded' },//默认发送表单格式数据,字符串键值对
})
request({metod:'post',url:'',data:{username:'xxx'}})
onabort: null
onerror: null
onload: null
onloadend: null
onloadstart: null
onprogress: null
onreadystatechange: null
ontimeout: null
readyState: 0
response: "" //这个
responseText: ""
responseType: ""
responseURL: ""
responseXML: null
status: 0
statusText: ""
timeout: 0
upload: XMLHttpRequestUpload {onloadstart: null, onprogress: null, onabort: null, onerror: null, onload: null, …} // 这个
withCredentials: false
__proto__: XMLHttpRequest