で、これは私の機能
は、どこに問題リアクト - ネイティブは「POST」要求投げ「でSyntaxError:JSON入力の予期しない終了」を取得アンドロイド
fetchData() {
fetch(REQUEST_URL, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
Request : 'menu',
active : '1',
})
}).then((response) => response.json())
.then((responseData) => {
this.setState({
menu: responseData.Response,
});
})
.catch((error) => {
console.warn('error',error);
})
.done();
}
が指摘してくださいされるかわからないです関数の問題
でいくつかのアイデアを持っていますか? –