function test(resolve, reject) { var timeOut = Math.random() * 2; ... 由于 test 函数在内部是异步执行的,当 test 函数执行成功时,我们告诉Promise对象:
確定! 回上一頁