parseInt("111") // 111
typeof parseInt("111") // “number”

parseFloat("11.11") //11.11
typeof parseFloat("11.11") // “number”

parseInt("abc") // NaN (NaN表示我这个值不是数字,但是还是属于数字number类型)
typeof parseInt("abc") // “number”

 

相关文章:

  • 2022-12-23
  • 2021-04-12
  • 2022-02-04
  • 2021-09-18
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2021-08-26
  • 2022-12-23
相关资源
相似解决方案