The way to convert a string to a number is with Number, not parseFloat. Number('1234') // 1234 Number('9BX9') // NaN You can also use the unary plus ...
確定! 回上一頁