定義暫停功能,要當成await 所以要返回promise. 3. var sleep = function (time) {. 4. return new Promise(function (resolve, reject) {.
確定! 回上一頁