return new Promise((resolve, reject) => {. 3. setTimeout(() => {. 4. let num = parseInt((Math.random() * 10) + 1). 5. resolve(num);.
確定! 回上一頁