老師講得非常棒,很簡單明了直接,給一個大大的贊。豆瓣電影接口不能用了,找了個可用的豆瓣代理接口: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
});