const URL = "http://url.com"; fetch(URL).then(res => res.json()).then(json => { this.setState({ someData: json }); });
如何发送带有 HTTP 标头的 HTTP 请求?
javascript reactjs
javascript ×1
reactjs ×1