vue採坑------v-for

記錄一下本身踩過的坑 這是寫vue第4天vue

sceneData: [ {"id": 1,title:"場景1", "gif_info":{"file":""}, "scene":[{"aeid":"1-1","content":"your text 1","source":""},{"aeid":"1-2","source":""},{"aeid":"1-3","source":""}], }, { "id": 2, title: "場景2", "gif_info": {"file": ""}, "scene": [{"aeid": "2-1", "content": "your text 2", "source": ""}], }, { "id": 3, title: "場景3", "gif_info": {"file": ""}, "scene": [{"aeid": "3-1", "content": "your text 3", "source": ""}], }, { "id": 4, title: "場景4", "gif_info": {"file": ""}, "scene": [{"aeid": "4-1", "content": "your text 4", "source": ""}], }, { "id": 5, title: "場景5", "gif_info": {"file": ""}, "scene": [{"aeid": "5-1", "content": "your text 5", "source": ""}], }, { "id": 6, title: "場景6", "gif_info": {"file": ""}, "scene": [{"aeid": "6-1", "content": "your text 6", "source": ""}], }, { "id": 7, title: "場景7", "gif_info": {"file": ""}, "scene": [{"aeid": "7-1", "content": "your text 7", "source": ""}], } ],it

這樣一個數據 取值file

須要兩個v-for套起來用 而後搗鼓了半天數據

不要糾結於index 由於糾結於index因此一直不得其解 就這樣。co

相關文章
相關標籤/搜索