Skip to content
字数
36 字
阅读时间
1 分钟
js
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")})

贡献者

The avatar of contributor named as sunchengzhi sunchengzhi

文件历史

撰写