getData() {
return fetch("http://bitcfeedcms.rf.gd/script.php")
.then(response => {
console.log(response);
response.json();
})
.then(responseJson => {
this.setState({ data: responseJson });
})
.catch(error => {
console.error(error);
});
}試圖在反應本地,但沒有得到正確響應於經由URL加載JSON
我還通過將ΔL= 1像「bitcfeedcms.rf.gd/script.php?l=1試圖」。 主要的json文件是「bitcfeedcms.rf.gd/feed_data.json」。所以,我想「http://bitcfeedcms.rf.gd/feed_data.json?l=1」這太,但沒有改變
什麼我現在做的就是JSON數據,並在我的應用程序使用它...請幫助
你看到的console.log? –
是的...我檢查。 –
響應日誌在這裏... http://bitcfeedcms.rf.gd/1.png –