Package Exports
- chinese-currency-formatter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chinese-currency-formatter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
中文的金额是一个有丰富意义的场景,本组件用于将金额显示为中文大写的金额。
如何使用
const ChinesesCurrencyFormatter = require('chinese-currency-formatter')
const chsCurrency = ChinesesCurrencyFormatter(987650321.46) // 玖亿捌仟柒佰陆拾伍万零叁佰贰拾壹圆肆角陆分
更多的调用示例可参考单元测试
变更
1.0.0 自该版本起,不再作为React组件存在,因为其方法其实完全可以脱离React,也方便更普通的场景调用。
如果您使用了之前的版本,给您带来不便,还请谅解。