基础事例const promise = new Promise((resolve, reject) => { setTimeout(()=>{ var ok = Math.random() > 0.5 // 模拟请求成功或失败if(ok) {resolve("成功了") } ...
確定! 回上一頁