vue中Promise對象用法

Promise.all([ 須要異步一塊兒執行的方法 ]).then(res=>{ res裏面存放的是數組,上面有多少個方法就有多少個index,每一個index是上面對應的方法的返回值 }) 實戰web //獲取列表 getDataList(){ Promise.all([ this.searchEquipmentList(), this.getEquip
相關文章
相關標籤/搜索