js用正则表达式把数字格式化成XXXX?
'xxxxx'.match(/\d{x, y}/g) 如 '111,1111,11111'.match(/\d{4,10}/g) => ['1111', '11111']