Promise 語法與then的用法:. var promise = new Promise(function(resolve, reject) { // ... some code if (/* 非同步操作成功*/){ resolve(value); } ...
確定! 回上一頁