function remove(key){ var reg=new RegExp('(^|,)'+key+'(,|$)'); new=old.replace(reg,','); return new }
No comments:
Post a Comment