Skip to content

v4.21.7

Compare
Choose a tag to compare
@caijf caijf released this 11 May 06:40
· 82 commits to master since this release
  • refactor: formatMoney 支持进制数字和点开头的数字字符串
formatMoney('.01'); // '0.01'
formatMoney(''); // '0.00'
formatMoney('0x11'); // '17.00'
formatMoney('0X11'); // '17.00'
formatMoney('0b11'); // '3.00'
formatMoney(true); // '1.00'
formatMoney(false); // '0.00'
formatMoney(null); // '0.00'
formatMoney(undefined); // '0.00'