parseFloat()函数 parseFloat 主要将首位是数字的字符串转换成浮点型数字。如果字符串不是以数字开头,就会返回NaN。 parseFloat(string) string :表示想要转换成浮点数字的字符串