方法:
methods: { // 截取当前数据到小数点后两位 numFilter(value) { const realVal = parseFloat(value).toFixed(2); return realVal; }, },
方法:
methods: { // 截取当前数据到小数点后两位 numFilter(value) { const realVal = parseFloat(value).toFixed(2); return realVal; }, },
转载于:https://www.cnblogs.com/wangyuxue/p/11363789.html