Promise

// Promise
            new Promise((resolve, reject) => {
                resolve(123);
              })
            .then((res) => {
                console.log(res) //123
            })
            .catch(() => {})

 

posted @ 2023-02-20 13:46  变形金刚之猩猩将军  阅读(12)  评论(0编辑  收藏  举报