jsp页面上字符串按”,“分割

var arr=new Array();
arr=ids.split(",");
alert(arr.length);

原文地址:https://www.cnblogs.com/lm52111/p/5078184.html