react保留有效数字小工具
const toFixed = ( dight, bits = 3 ) => { return Math.round( dight * Math.pow( 10, bits ) ) / Math.pow( 10, bits ) } export default { toFixed }
const toFixed = ( dight, bits = 3 ) => { return Math.round( dight * Math.pow( 10, bits ) ) / Math.pow( 10, bits ) } export default { toFixed }