React Native调试错误跟踪技巧
使用fetch方法请求数据,对结果使用.then(response => response.jso()).
如果遇到API调试出现返回数据json错误,字符<无法解析
可以使用response => console.log(response.text())
查看服务器返回的错误的内容
使用fetch方法请求数据,对结果使用.then(response => response.jso()).
如果遇到API调试出现返回数据json错误,字符<无法解析
可以使用response => console.log(response.text())
查看服务器返回的错误的内容