ES6常用片段

promise:

--在return里面:

methods:{
      getSellData(){
         return axios.get('/api/seller').then((res=>{
            return Promise.resolve(res)
         }))
      }
}

遍历对象的key:

Object.keys(storeCartList).forEach(itemGroup=>{
原文地址:https://www.cnblogs.com/thing/p/9371808.html