日期:2014-05-18 浏览次数:20686 次
<script type=text/javascript> var str="[10,30],[100,200],[1,20]"; var str1 = str.substring(1,str.length-1); var a1 = str1.split("],["); for(var i=0;i<a1.length;i++) { var a2 = a1[i].split(","); alert(a2[0]); } </script>