【发布时间】:2023-02-04 23:53:43
【问题描述】:
我正在制作一个应用程序的原型,但我无法收到与
快递寄送方式
express api sends this.
res.send("monday");
我的前端 React Native
let ti = await axios.post("http://localhost:3000/login",
{
celular: celular,
senha: senha,
},
{
headers: {
Accept: "application/json",
"Content-Type": "application/json;charset=UTF-8",
}
}
).then( e => {
Alert.alert(e.status) //ok, status is there
Alert.alert(e.text()) // how to get the 'monday' text?
})
【问题讨论】:
标签: javascript react-native http axios