【原创】Promise异步编程

show me the code function getPromise(cbk){ return (new Promise(cbk)); } getPromise(function (res,rej) { res("suc1") //只会执行一个,并把参数传递到catch或者then rej("e
posted @ 2022-08-11 12:16  小匡程序员  阅读(26)  评论(0编辑  收藏  举报