【发布时间】:2019-04-10 13:18:18
【问题描述】:
我的 fetch() api 有问题,我使用 get 方法 + https,但在 Android 9 中不起作用。在 android 7 中工作。
代码:
fetch('https://facebook.github.io/react-native/movies.json')
.then(function(response) {
return response.json();
})
.then(function(myJson) {
alert(JSON.stringify(myJson));
})
.catch(function (error) {
alert(error);
});
屏幕: Error screen
【问题讨论】:
-
您厌倦了我的解决方案吗?成功了吗?
标签: android react-native fetch