This commit is contained in:
asd
2019-12-20 14:03:59 +08:00
parent 6bc644c5ec
commit e50c0b269c
14 changed files with 356 additions and 52 deletions

View File

@@ -17,12 +17,12 @@ let request = function (obj){
text += `/${i}/${urldata[i]}`
}
url+=text
if(method == "POST" || method == "post"){
if(header == undefined){
header ={}
}
header['content-type'] = "application/x-www-form-urlencoded"
}
// if(method == "POST" || method == "post"){
// if(header == undefined){
// header ={}
// }
// header['content-type'] = "application/x-www-form-urlencoded"
// }
if(data == undefined){
data = {}
}