谁能帮帮我,为什么请求失败啊?直接输url的网址是有数据返回的
loadMovie:function(){
var page=this;
wx.request({
url: 'https://api.douban.com/v2/movie/coming_soon',
header: {
'content-type': 'application/json'
},
success: function (res) {
console.log(res.data);
var subjects=res.data.subjects;
page.setData({movies:subjects});
}
})
}
7 回复