一、GET接口
let url = 'https://news-at.zhihu.com/api/4/themes'
fetch(url)
.then((response) => response.json())
.then((responseJson) => {
this.setState({
list: responseJson.others,
});
})
.catch((error) => {
console.error(error);
});
二、POST接口