鍍金池/ 問(wèn)答/HTML5  HTML/ vue v-for如何渲染數(shù)組對(duì)象中的數(shù)組?

vue v-for如何渲染數(shù)組對(duì)象中的數(shù)組?

clipboard.png

發(fā)現(xiàn)這個(gè)數(shù)組單獨(dú)取出來(lái)后又變成了新的數(shù)組集合,除了不斷賦值取值,有沒(méi)有什么更好的解決方案呢?

clipboard.png

由于是內(nèi)網(wǎng)開(kāi)發(fā),這里只能上截圖了,各位前輩同胞將就著看吧 ̄□ ̄||,items該如何處理,才能正確的遍歷historydeal里面的數(shù)組呢?

success:function(data){
    if(data.resCode=="0"){
        that.items=data.customerlist;
    }else{
        console.log("請(qǐng)求失敗");
    }
}

頁(yè)面截圖如下:(只是引入了vue.js文件,頁(yè)面是html頁(yè)面文件)

clipboard.png

回答
編輯回答
背叛者

再v-for循環(huán)一下這個(gè)item.historydealresult

2018年1月18日 13:37
編輯回答
痞性
 <span class="user_history_one" v-for="row in item.historydeal">{{ row.historydealresult }}</span>
2018年4月21日 00:44