使用 parseInt() 和 parseFloat(). 整數的另一個好方法是呼叫 parseInt() 函式: const count = parseInt('1234', 10). 不要忘記第二個引數,即基數, ...
確定! 回上一頁