我收到以下错误
//bundle.js:31367 Uncaught TypeError: this.setState is not a function //
JSX:
componentDidMount(){
$.ajax({
url:'http://intelligencevillage.wxtui.cn/index.php/Api/HomepageWebview/getHomepageData/area_id/5',
dataType:'json',
cache:false,
}).done(function({data}){
this.setState({
lis1:[data.banner]
})
})
}
我知道这是某种绑定问题,但我不知道如何解决。任何帮助表示赞赏。