正则 2018-07-23 本文已影响0人 洱月 间隔四个字符加空格 12345678 =》 1234 5678 str.replace(/\s/g,'').replace(/(.{4})/g,"$1 ")