getData: function () {
console.log("query--- ");
var that = this;
var query = new AV.Query('aaa');
query.descending('createdAt');
query.limit(5);
query.find().then(function (results) {
console.log("success--- ");
that.setData({
abc: results
});
}).catch(function (error) {
console.log("err--- ");
});
}
真机调试console.log("success--- ");这里包括后面的代码都没执行,也就是没有到进入回调