老师讲得非常棒,很简单明了直接,给一个大大的赞。豆瓣电影接口不能用了,找了个可用的豆瓣代理接口:http://t.yushu.im/v2/movie/in_theaters?start=1&count=10
2019-05-18
老师,这里不能直接 this.setData({
movieList:this.movieList.concat(JSON.parse(res.result).subjects);});
需要设置变量,不然会报 Cannot read property 'concat' of undefined,我这样改的:var dataList = this.movieList.concat(JSON.parse(res.result).subjects);
this.setData({
movieList: dataList
});
movieList:this.movieList.concat(JSON.parse(res.result).subjects);});
需要设置变量,不然会报 Cannot read property 'concat' of undefined,我这样改的:var dataList = this.movieList.concat(JSON.parse(res.result).subjects);
this.setData({
movieList: dataList
});