正则指定位置插入特殊字符

str.replace(/(.{4})/g, "$1/")

每四位插入 / 字符

猜你喜欢

转载自blog.csdn.net/bangbDIV/article/details/90482599
今日推荐