正则 间隔插入字符

.replace(/(.{5})/g, '$1
')

  每隔5个字符插入

未闻花名
原文地址:https://www.cnblogs.com/duokexiao/p/14543496.html