url后缀加了"?start=0&count=3",仍然取不到三条数据,是怎么回事?
来源:20-11 RESTful API简介及调用豆瓣API

小南瓜小
2018-01-19
4回答
-
7七月
2018-01-20
base地址换成,http://t.yushu.im
112018-05-26 -
BioDemo
2018-01-19
豆瓣禁止了小程序访问 都遇到了这种情况 别着急 ! 你可以使用其他平台的api
猫眼:
https://m.maoyan.com/movie/list.json?type=hot&offset=0&limit=3
10 -
元曦
2018-05-26
地址换成,http://t.yushu.im
仍然报错
00 -
小南瓜小
提问者
2018-01-19
onLoad: function () {
var in_theaters = app.globalData.doubanMovieBase + "/in_theaters.json" + "?start=0&count=3";
var coming_soon = app.globalData.doubanMovieBase + "/coming_soon.json"; + "?start=0&count=3"
var top250 = app.globalData.doubanMovieBase + "/top250.json" + "?start=0&count=3";
var _this = this;
_this.getMovieListData(in_theaters);
_this.getMovieListData(coming_soon);
_this.getMovieListData(top250);
},
贴一下源码,我在老师的基础上略有改动。
00
相似问题