提交 dc7cb06b 编写于 作者: lizhongyi_'s avatar lizhongyi_

update global.md & number.md

上级 b6f1a061
......@@ -14,6 +14,11 @@
<!-- UTSJSON.Global.parseInt.compatibility -->
- 注意:
+ 该方法仅支持对 string 类型的解析,传入其他类型会编译报错。
+ radix 参数可不传,默认值为 10。但是不可传入 null, 传入 null 会编译报错。
### parseFloat(string)
<!-- UTSJSON.Global.parseFloat.description -->
......@@ -23,3 +28,5 @@
<!-- UTSJSON.Global.parseFloat.returnValue -->
<!-- UTSJSON.Global.parseFloat.compatibility -->
- 注意: 该方法仅支持对 string 类型的解析,传入其他类型会编译报错。
\ No newline at end of file
......@@ -138,6 +138,71 @@ console.log(a.toLong());
<!-- UTSJSON.Number.toULong.compatibility -->
### toInt64()
<!-- UTSJSON.Number.toInt64.description -->
<!-- UTSJSON.Number.toInt64.param -->
<!-- UTSJSON.Number.toInt64.returnValue -->
### toInt32()
<!-- UTSJSON.Number.toInt32.description -->
<!-- UTSJSON.Number.toInt32.param -->
<!-- UTSJSON.Number.toInt32.returnValue -->
### toInt16()
<!-- UTSJSON.Number.toInt16.description -->
<!-- UTSJSON.Number.toInt16.param -->
<!-- UTSJSON.Number.toInt16.returnValue -->
### toInt8()
<!-- UTSJSON.Number.toInt8.description -->
<!-- UTSJSON.Number.toInt8.param -->
<!-- UTSJSON.Number.toInt8.returnValue -->
### toUInt64()
<!-- UTSJSON.Number.toUInt64.description -->
<!-- UTSJSON.Number.toUInt64.param -->
<!-- UTSJSON.Number.toUInt64.returnValue -->
### toUInt32()
<!-- UTSJSON.Number.toUInt32.description -->
<!-- UTSJSON.Number.toUInt32.param -->
<!-- UTSJSON.Number.toUInt32.returnValue -->
### toUInt16()
<!-- UTSJSON.Number.toUInt16.description -->
<!-- UTSJSON.Number.toUInt16.param -->
<!-- UTSJSON.Number.toUInt16.returnValue -->
### toUInt8()
<!-- UTSJSON.Number.toUInt8.description -->
<!-- UTSJSON.Number.toUInt8.param -->
<!-- UTSJSON.Number.toUInt8.returnValue -->
### from()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册