切换主题
new Promise ((resolve,reject)=>{ console.log("1000"); // resolve('2000') reject('an error') }).then(value=>{ console.log(value) return 3000 }).then(value=>{console.log(value); throw "An error";}) .catch(value=>{console.log(value+"ia")})
de5fa