amountutil 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ npm install amountutil
|
|
|
14
14
|
const AmountUtil = require('amountutil');
|
|
15
15
|
|
|
16
16
|
// 转换为中文金额
|
|
17
|
-
let amount = new AmountUtil(123456.78);
|
|
17
|
+
let amount = new AmountUtil('123456.78');
|
|
18
18
|
const chineseAmount = amount.translateAmount();
|
|
19
19
|
console.log(chineseAmount); // 输出:"壹拾贰万叁仟肆佰伍拾陆元柒角捌分"
|
|
20
20
|
|
package/package.json
CHANGED