js 删除字符串右边逗号

openid = openid.substring(0,openid.length-1)

原文地址:https://www.cnblogs.com/zjj1990/p/7580219.html