【发布时间】:2018-04-25 20:01:00
【问题描述】:
我的json数据是
{ "status": true,
"data": {
"pid": 9,
"Name": "Asok",
"services": "3, 1, 2, 4, 5, 6",
"inventory": ["specs", " Testing", "Lens", "Doctors", "Surgeon", "Medicines"]
}
}
现在我用html作为
<div v-for="inv in data.inventory">{{inv}}</div>
当我这样做时,数据正在向下打印..我需要连续显示用逗号分隔的数据??
【问题讨论】:
-
{{inv.join(',')}}
标签: javascript jquery vue.js vue-component vue-router