# Promise Promise 对象表示异步操作最终的完成(或失败)以及其结果值。 ### Constructor(fn) ### Constructor(fn) ## 实例方法 ### then() ### then(onFulfilled, onRejected?) ### then(onFulfilled, onRejected?) ### then(onFulfilled, onRejected?) ### then(onFulfilled, onRejected?) ### catch() ### catch(onRejected) ### catch(onRejected) ### catch(onRejected) ### catch(onRejected) ### finally(callback) ### resolve() ### resolve(value) ### resolve(value) ### reject(value?) ### all(arr) ### race(arr) ### any(arr) ### allSettled(arr) ## Bug & Tips@tips * 目前 Promise 类型编译到 kotlin 为 io.dcloud.uts.UTSPromise * 编译到swift时暂不支持。但在uvue里因为iOS默认js驱动所以可以使用Promise