vue.js实现千位分隔样式

parseInt(值).toLocaleString();
parseFloat(值).toLocaleString();
parseDouble(值).toLocaleString();
parseFloat((值.toFixed(n)): 利用toFixed() 方法,该方法可把值四舍五入为指定小数位数的数字:

猜你喜欢

转载自www.cnblogs.com/lovetl/p/12749788.html