日期:2014-05-17 浏览次数:20457 次
var s = "indiator[0].indicatorLelvel[0].Relationship"; var parrent = /\[\d\]/g; var result = s.match(parrent); for(var i in result){ alert(result[i]); }