我有如下的json。
如何迭代由逗号分隔的单个列表的标签?
我知道如果标签列表是嵌套数组的形式,使用{{for #data}}可以很容易地迭代
var gdata = [
{ id: "1", width: "425",height: "640",src : "test/ocean-bridge.jpg" ,thumb : "test/ocean-bridge.jpg",type:"picture",tags:"dd,cc,brazil,malakand"},
{ id: "2", width: "500",height: "333",src : "test/modern-bike.jpg" ,thumb : "test/modern-bike.jpg",type:"picture",tags:"never,ever,who,when" },
{ id: "3", width: "500",height: "580",src : "test/clown.jpg" ,thumb : "test/clown.jpg",type:"picture",tags:"what,why,didit,pizza" },
{ id: "4", width: "640",height: "360",src : "test/html5.webm" ,thumb : "test/webm.jpg",type:"movie",duration:"10:11:12",tags:"never,ever,who,when"},
{ id: "5", width: "640",height: "360",src : "test/html5.mp4" ,thumb : "test/mp4.jpg",type:"movie",duration:"12:10:12",tags:"dynamic,static,who,when"}
];