前端企业面试题:企业真实案例——33
手动实现一个Promisefunction MyPromise(main){ let status = "pending"; //Promise对象状态 let tasklist = []; //保存所有的任务 let exceptionHander = null; function resolve(msg) { if(status == "pending") { status = "resov