怎么去掉字符串最后一个逗号

        var box='good,girl,is here,'
        var res =box.slice(0,box.length-1)
        console.log(res,'res') //good,girl,is here
            

多运动,注意身体-_-

原文地址:https://www.cnblogs.com/antyhouse/p/10026985.html