js 去除最后一个逗号

var reg = /,$/gi; 
 ids = ids.replace(reg,"");

 

posted @ 2016-04-19 15:53  IAMME  阅读(215)  评论(0)    收藏  举报