详解JS转换数值函数Number()、parseInt()、parseFloat() JS中有三种函数可以将非数值转换成数值:Number()、parseInt()和parseFloat()。第一个函数,即转 number函数