到数字分组:使用千位分隔符(或自定义文本)将字符串中的数字分组 源码
要数字分组 使用千位分隔符(或自定义文本)将字符串中的数字分组。 import toDigitGrouped from 'to-digit-grouped' ; toDigitGrouped ( '1234567890.1234567890' ) ; // "1 234 567 890.1234567890" toDigitGrouped ( 'value: 1234567890.1234567890 unit' ) ; // "value: 1 234 567 890.1234567890 unit" toDigitGrouped ( '1234 and 5678' ) ; // 1 234 and 5678 toDigitGrouped ( '1234 and 5678' , { multiple : true } ) ; // 1 234 and 5 678 toDigitGro
下载地址
用户评论