fetch(userLoginUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
},
body: JSON.stringify(userObj),
}).then(function (res) {
if (res.ok) {
res.json().then(function (data) {
//console.log(data);
if (data.code == 0) {
dataTest = data;
dataBu = true;
applyFn(data);
//上面成功后再次出一个请求 ????
}
});
}
}).catch(function (err) {
// console.log(err)
});