标签:
var str="1,2,3,4,5,"; var newstr=str.substring(0,str.length-1); alert(newstr);
字符串去了最后一个字符
原文地址:http://www.cnblogs.com/yjhua/p/5092377.html