function getResult (a) { return (Math.floor(a * 100) / 100).toFixed(2) }. 在JS中数字12.00和12是相同的值,因为不区分整数小数。所以保留2位小数 ...
確定! 回上一頁