在线等,正则请教
有下面格式的字符串,
[
{ title: ‘测试1’, width: 340, align: center,filde:ID,colspan: 2 },
{ title: ‘测试2’, width: 195, align: center, filde:BM2,colspan: 1, rowspan: 2 }
],
[
{ title: ‘测试4’, width: 170, align: center, filde:BM4,colspan: 1 },
{ title: ‘测试3’, width: 170, align: center, filde:BM5,colspan: 1, rowspan: 1,, formatter: function (value, row, index) {
if (value != null && value != "") {
var e = '<a href="#" title="' + value + '">' + value + '</a>';
return e;
}
else {
return "";
}
} }
]
想把 中括号里的内容给匹配出来,并存成JS数组,要如何做?