本白在react native中使用fetch進行網絡請求的時候顯示請求失敗。請求部分代碼如下:fetch('../data/myjson.json')
.then(function(response){
return response.json();
}).then(function(json){
console.log('parsed json', json);
}).catch(function(ex){
console.log('parsing failed')
});../data/myjson.json是我的本地json文件Thanks for all helps
React Native fetch請求失敗
慕田峪9158850
2018-08-09 13:37:23