1.0.1 • Published 4 years ago

format-input-money v1.0.1

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

/**

  • 格式化输入框输入的数值格式
  • @value 输入的值(必传)
  • 若输入0000,值为0
  • 若输入0.9999,值为0.99(多位小数只会保留两位小数)
  • 若输入0..9,只会有一个小数点(多个小数点只会存在一个小数点) */

// 此插件适合场景:提现场景,调价场景等输入框输入只保留两位小数的所有场景

install

    npm install -S format-input-money

Begin Start

    let formatMoneyOrPrice = require('format-input-money');
1.0.1

4 years ago

1.0.0

4 years ago