This commit is contained in:
2019-12-20 14:16:22 +08:00
14 changed files with 356 additions and 52 deletions

View File

@@ -23,12 +23,12 @@ let request = function (obj){
}
}
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 = {}
}