Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要格式号(123456)为123 456
(123456)
123 456
我用了:
(123456).format({groups: ' '}) //result 123,456
它group不是groups。
group
groups
console.log( (123456789).format({ group: " " }) );
JSFiddle