老师,我这个一直访问不成功,回调函数都没进去,是怎么回事呢?
var url = "http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10";
// console.log(url);
rp(url)
.then(function (res) {
console.log("in:"+res);
return res;
})
.catch(function (err) {
console.error("err:"+err);
});