js removeClass name

var abc="a b c d".split(/\s/);
var new1=abc.join(",").replace(/,?d/,"");
if(new1.substring(0,1)==","){new1=new1.substring(1)};
new1=new1.replace(/,/ig," ");
alert (new1);

posted on 2012-08-16 19:00  lzf0514  阅读(143)  评论(0编辑  收藏  举报

导航