var ids = "1,2,3,4,5,6,7,8,9,10" ;
var ids = ids.split(',');
for(var i in ids){
console.log(ids[i]);
};
var ids = "1,2,3,4,5,6,7,8,9,10" ;
var ids = ids.split(',');
for(var i in ids){
console.log(ids[i]);
};
转载于:https://my.oschina.net/bo081220/blog/599716