javascript去除一个字符串末尾的逗号

日期:2018-02-04 11:13:07 人气:1

javascript去除一个字符串末尾的逗号

试试var s = '我是测试字符串,';s.replace(/(.*)[,,]$/, '$1');
    A+
热门评论