diff --git a/docs/uts/buildin-object-api/global.md b/docs/uts/buildin-object-api/global.md index 9eb46f336b2db092b86840d794ac957133f6ef3a..3fcabd0218d1e0d99fa64cec3ed15cae72f047ab 100644 --- a/docs/uts/buildin-object-api/global.md +++ b/docs/uts/buildin-object-api/global.md @@ -14,6 +14,11 @@ +- 注意: + + 该方法仅支持对 string 类型的解析,传入其他类型会编译报错。 + + radix 参数可不传,默认值为 10。但是不可传入 null, 传入 null 会编译报错。 + + ### parseFloat(string) @@ -22,4 +27,6 @@ - \ No newline at end of file + + +- 注意: 该方法仅支持对 string 类型的解析,传入其他类型会编译报错。 \ No newline at end of file diff --git a/docs/uts/buildin-object-api/number.md b/docs/uts/buildin-object-api/number.md index a5c89f2e776625feceb146876436a640e9098a9d..ef9a0a5aae4075c6b1d57ee73cbd5d47e698e1b6 100644 --- a/docs/uts/buildin-object-api/number.md +++ b/docs/uts/buildin-object-api/number.md @@ -138,6 +138,71 @@ console.log(a.toLong()); +### toInt64() + + + + + + + +### toInt32() + + + + + + + +### toInt16() + + + + + + + +### toInt8() + + + + + + + + +### toUInt64() + + + + + + + +### toUInt32() + + + + + + + +### toUInt16() + + + + + + + +### toUInt8() + + + + + + + ### from()