在JavaScript中,当从float转换为字符串时,如何在小数点后只获得2位数?例如,0.34而不是0.3445434.
javascript floating-point
floating-point ×1
javascript ×1