1.0.2 • Published 3 years ago

thousand-conversion-xq v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

此包的函数是将数据金额转换成包含千位符分割的字符串展示

函数接受两个参数 参数1为你需要转换的数据源(string或者number类型), 参数2是需要保留的小数位(也可不传,不传参数2时默认保留两位)

react页面调用举例 import thousand from 'thousand-conversion-xq'; thousand(123456,2) ===> 123,456.00