function1: function () {
return new Promise(function (resolve, reject) {
manager.stop()
resolve();
})
},
function2: function () {
var that = this;
that.function1().then(function (resolve) {
console.log("globalData2", app.globalData.result)
var result = getApp().globalData.result
that.setData({
result: result
})
})
我在程序中这样写 为什么没反应 ?还是先funcion2执行再function1呀 ?小白求助!
本文网址:http://www.91bianli.com/weixinxiaochengxu/50835.html