num.fixed(n);
<script type="text/javascript"> function fixed(num){ return num.toFixed(2); } alert(fixed(123.4)); </script>
时间: 2025-01-06 22:01:42
num.fixed(n);
<script type="text/javascript"> function fixed(num){ return num.toFixed(2); } alert(fixed(123.4)); </script>