jquery 通过 toFixed 保留两位小数

<script>
    var num = 12.21654;
    console.log(num.toFixed(2))
</script>

 

相关文章:

  • 2021-11-14
  • 2022-01-02
  • 2021-11-18
  • 2021-12-18
  • 2021-12-18
  • 2021-11-08
  • 2021-10-19
猜你喜欢
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
相关资源
相似解决方案