此包的函数是将数据金额转换成包含千位符分割的字符串展示
函数接受两个参数 参数1为你需要转换的数据源(string或者number类型), 参数2是需要保留的小数位(也可不传,不传参数2时默认保留两位)
react页面调用举例 import thousand from 'thousand-conversion-xq'; thousand(123456,2) ===> 123,456.00
此包的函数是将数据金额转换成包含千位符分割的字符串展示
函数接受两个参数 参数1为你需要转换的数据源(string或者number类型), 参数2是需要保留的小数位(也可不传,不传参数2时默认保留两位)
react页面调用举例 import thousand from 'thousand-conversion-xq'; thousand(123456,2) ===> 123,456.00
npm i thousand-conversion-xq
1
1.0.2
MIT
1.63 kB
3