我需要把object
{
"tube1":[
{"msg": "hello"},
{"msg": "world"},
],
"tube2":[
{"msg": "hello2"},
{"msg": "world2"},
],
"tube3":[
{"msg": "hello3"},
{"msg": "world3"},
]
}
展示出来,貌似v-for只对array有效,我该怎么做?
Object 也可行吧:
https://jsfiddle.net/a95sn161/