toFixed

1,toFixed要使用与Number数据类型

2.parseInt将字符串转换为整形

3.parseFloat将字符串转换为浮点型

原文地址:https://www.cnblogs.com/xiaobiaomei/p/9208693.html