1,toFixed要使用与Number数据类型 2.parseInt将字符串转换为整形 3.parseFloat将字符串转换为浮点型 转载于:https://www.cnblogs.com/xiaobiaomei/p/9208693.html