vue中Promise对象用法

Promise.all([ 须要异步一块儿执行的方法 ]).then(res=>{ res里面存放的是数组,上面有多少个方法就有多少个index,每一个index是上面对应的方法的返回值 }) 实战web //获取列表 getDataList(){ Promise.all([ this.searchEquipmentList(), this.getEquip
相关文章
相关标签/搜索