写在前面 Promise提供一个异步操作,处理完之后就会销毁任务,只执行一次 举例 封装一个函数,从服务器获取用户信息 const userDetail = (id) =>{ return new Promise((resolve,reject)=>{ wepy