API Reference
5.1. Promise#then promise.then(onFulfilled, onRejected);then 代码示例 var promise = new Promise(function(resolve, reject){ resolve("传递给then的值"); }); promise.then(function (value) { console.log(value); }, function (error) { console.error(error); });
Xebcnor