保留小数位数

在模板中,如果是可编辑的:
可以使用el-input-number组件,配置:precision="XX"即可。
如果是不可编辑的,a.toFixed(XX)即可。

posted @ 2025-06-04 14:15  k954  阅读(9)  评论(0)    收藏  举报