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

docs update utsjsonobject.md

上级 d5aa57b0
...@@ -109,6 +109,16 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建: ...@@ -109,6 +109,16 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建:
<!-- UTSJSON.UTSJSONObject.getAny.compatibility --> <!-- UTSJSON.UTSJSONObject.getAny.compatibility -->
### getAny(key: string, def: any): any
<!-- UTSJSON.UTSJSONObject.getAny_1.description -->
<!-- UTSJSON.UTSJSONObject.getAny_1.param -->
<!-- UTSJSON.UTSJSONObject.getAny_1.returnValue -->
<!-- UTSJSON.UTSJSONObject.getAny_1.compatibility -->
### getBoolean(key): boolean | null ### getBoolean(key): boolean | null
<!-- UTSJSON.UTSJSONObject.getBoolean.description --> <!-- UTSJSON.UTSJSONObject.getBoolean.description -->
...@@ -119,6 +129,16 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建: ...@@ -119,6 +129,16 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建:
<!-- UTSJSON.UTSJSONObject.getBoolean.compatibility --> <!-- UTSJSON.UTSJSONObject.getBoolean.compatibility -->
### getBoolean(key: string, def: boolean): boolean
<!-- UTSJSON.UTSJSONObject.getBoolean_1.description -->
<!-- UTSJSON.UTSJSONObject.getBoolean_1.param -->
<!-- UTSJSON.UTSJSONObject.getBoolean_1.returnValue -->
<!-- UTSJSON.UTSJSONObject.getBoolean_1.compatibility -->
### getNumber(key): number | null ### getNumber(key): number | null
<!-- UTSJSON.UTSJSONObject.getNumber.description --> <!-- UTSJSON.UTSJSONObject.getNumber.description -->
...@@ -129,6 +149,16 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建: ...@@ -129,6 +149,16 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建:
<!-- UTSJSON.UTSJSONObject.getNumber.compatibility --> <!-- UTSJSON.UTSJSONObject.getNumber.compatibility -->
### getNumber(key: string, def: number): number
<!-- UTSJSON.UTSJSONObject.getNumber_1.description -->
<!-- UTSJSON.UTSJSONObject.getNumber_1.param -->
<!-- UTSJSON.UTSJSONObject.getNumber_1.returnValue -->
<!-- UTSJSON.UTSJSONObject.getNumber_1.compatibility -->
### getString(key): string | null ### getString(key): string | null
<!-- UTSJSON.UTSJSONObject.getString.description --> <!-- UTSJSON.UTSJSONObject.getString.description -->
...@@ -141,6 +171,19 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建: ...@@ -141,6 +171,19 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建:
<!-- UTSJSON.UTSJSONObject.getString.compatibility --> <!-- UTSJSON.UTSJSONObject.getString.compatibility -->
### getString(key: string, def: string): string
<!-- UTSJSON.UTSJSONObject.getString_1.description -->
<!-- UTSJSON.UTSJSONObject.getString_1.param -->
<!-- UTSJSON.UTSJSONObject.getString_1.returnValue -->
<!-- UTSJSON.UTSJSONObject.getString_1.test -->
<!-- UTSJSON.UTSJSONObject.getString_1.compatibility -->
### getJSON(key): UTSJSONObject | null ### getJSON(key): UTSJSONObject | null
<!-- UTSJSON.UTSJSONObject.getJSON.description --> <!-- UTSJSON.UTSJSONObject.getJSON.description -->
...@@ -153,7 +196,19 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建: ...@@ -153,7 +196,19 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建:
<!-- UTSJSON.UTSJSONObject.getJSON.compatibility --> <!-- UTSJSON.UTSJSONObject.getJSON.compatibility -->
### getArray(key): Array\<any> | null ### getJSON(key: string, def: UTSJSONObject): UTSJSONObject
<!-- UTSJSON.UTSJSONObject.getJSON_1.description -->
<!-- UTSJSON.UTSJSONObject.getJSON_1.param -->
<!-- UTSJSON.UTSJSONObject.getJSON_1.returnValue -->
<!-- UTSJSON.UTSJSONObject.getJSON_1.test -->
<!-- UTSJSON.UTSJSONObject.getJSON_1.compatibility -->
### getArray(key): Array\<T> | null
<!-- UTSJSON.UTSJSONObject.getArray.description --> <!-- UTSJSON.UTSJSONObject.getArray.description -->
...@@ -165,7 +220,7 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建: ...@@ -165,7 +220,7 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建:
<!-- UTSJSON.UTSJSONObject.getArray.compatibility --> <!-- UTSJSON.UTSJSONObject.getArray.compatibility -->
### getArray(key): Array\<T> | null ### getArray(key: string, def: Array\<T>): Array\<T>
<!-- UTSJSON.UTSJSONObject.getArray_1.description --> <!-- UTSJSON.UTSJSONObject.getArray_1.description -->
...@@ -177,6 +232,31 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建: ...@@ -177,6 +232,31 @@ UTSJSONObject 对象的实例目前主要通过两种方式来创建:
<!-- UTSJSON.UTSJSONObject.getArray_1.compatibility --> <!-- UTSJSON.UTSJSONObject.getArray_1.compatibility -->
### getArray(key): Array\<any> | null
<!-- UTSJSON.UTSJSONObject.getArray_2.description -->
<!-- UTSJSON.UTSJSONObject.getArray_2.param -->
<!-- UTSJSON.UTSJSONObject.getArray_2.returnValue -->
<!-- UTSJSON.UTSJSONObject.getArray_2.test -->
<!-- UTSJSON.UTSJSONObject.getArray_2.compatibility -->
### getArray(key: string, def: Array\<any>): Array\<any>
<!-- UTSJSON.UTSJSONObject.getArray_3.description -->
<!-- UTSJSON.UTSJSONObject.getArray_3.param -->
<!-- UTSJSON.UTSJSONObject.getArray_3.returnValue -->
<!-- UTSJSON.UTSJSONObject.getArray_3.test -->
<!-- UTSJSON.UTSJSONObject.getArray_3.compatibility -->
### toMap(): Map\<string, any> ### toMap(): Map\<string, any>
<!-- UTSJSON.UTSJSONObject.toMap.description --> <!-- UTSJSON.UTSJSONObject.toMap.description -->
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册