Skip to content

toNumber

toNumber(needle)

转换为Number类型。

返回值:Number

参数说明类型可选值默认值
needle待转换对象String
js
console.log(JW.toNumber('1'));