vue 使用 currency.js 处理 小数的相加减 精度问题
vue 使用 currency.js 处理 小数的相加减 精度问题安装 currency.jsnpm install --save currency.js或者yarn add currency.js引入在需要用到的地方import currency from 'currency.js'使用// number1,number2 就是你想要相加的数currency(number1).add(number2)其他需求详情可参考 currency.js 官网...