未验证 提交 55250e01 编写于 作者: O openharmony_ci 提交者: Gitee

!2252 Modify the format

Merge pull request !2252 from 小马奔腾/master
...@@ -167,7 +167,7 @@ var result = process.isIsolatedProcess(); ...@@ -167,7 +167,7 @@ var result = process.isIsolatedProcess();
## process.isAppUid<sup>8+</sup> ## process.isAppUid<sup>8+</sup>
isAppUid(v:number): boolean isAppUid(v: number): boolean
Checks whether a UID belongs to this app. Checks whether a UID belongs to this app.
...@@ -211,7 +211,7 @@ var ressult = process.is64Bit(); ...@@ -211,7 +211,7 @@ var ressult = process.is64Bit();
## process.getUidForName<sup>8+</sup> ## process.getUidForName<sup>8+</sup>
getUidForName(v:string): number getUidForName(v: string): number
Obtains the process UID based on the process name. Obtains the process UID based on the process name.
...@@ -236,7 +236,7 @@ var pres = process.getUidForName("tool") ...@@ -236,7 +236,7 @@ var pres = process.getUidForName("tool")
## process.getThreadPriority<sup>8+</sup> ## process.getThreadPriority<sup>8+</sup>
getThreadPriority(v:number): number getThreadPriority(v: number): number
Obtains the thread priority based on the specified TID. Obtains the thread priority based on the specified TID.
...@@ -278,9 +278,9 @@ Obtains the duration, in milliseconds, from the time the system starts to the ti ...@@ -278,9 +278,9 @@ Obtains the duration, in milliseconds, from the time the system starts to the ti
var realtime = process.getStartRealtime(); var realtime = process.getStartRealtime();
``` ```
## process.getPastCputime<sup>8+</sup> ## process.getPastCpuTime<sup>8+</sup>
getPastCputime(): number getPastCpuTime(): number
Obtains the CPU time (in milliseconds) from the time the process starts to the current time. Obtains the CPU time (in milliseconds) from the time the process starts to the current time.
...@@ -293,13 +293,13 @@ Obtains the CPU time (in milliseconds) from the time the process starts to the c ...@@ -293,13 +293,13 @@ Obtains the CPU time (in milliseconds) from the time the process starts to the c
**Example** **Example**
``` ```
var result = process.getPastCputime() ; var result = process.getPastCpuTime() ;
``` ```
## process.getSystemConfig<sup>8+</sup> ## process.getSystemConfig<sup>8+</sup>
getSystemConfig(name:number): number getSystemConfig(name: number): number
Obtains the system configuration. Obtains the system configuration.
...@@ -325,7 +325,7 @@ var pres = process.getSystemConfig(_SC_ARG_MAX) ...@@ -325,7 +325,7 @@ var pres = process.getSystemConfig(_SC_ARG_MAX)
## process.getEnvironmentVar<sup>8+</sup> ## process.getEnvironmentVar<sup>8+</sup>
getEnvironmentVar(name:string): string getEnvironmentVar(name: string): string
Obtains the value of an environment variable. Obtains the value of an environment variable.
...@@ -416,7 +416,7 @@ Stores the events triggered by the user. ...@@ -416,7 +416,7 @@ Stores the events triggered by the user.
| Name| Description| | Name| Description|
| -------- | -------- | | -------- | -------- |
| EventListener&nbsp;=&nbsp;(evt:&nbsp;Object)&nbsp;=&gt;&nbsp;void | Event to store.| | EventListener&nbsp;=&nbsp;(evt: &nbsp;Object)&nbsp;=&gt;&nbsp;void | Event to store.|
**Example** **Example**
...@@ -527,7 +527,7 @@ var time = process.uptime(); ...@@ -527,7 +527,7 @@ var time = process.uptime();
## process.kill ## process.kill
kill(pid: number, signal: number): boolean kill(pid: number, signal: number ): boolean
Sends a signal to the specified process to terminate it. Sends a signal to the specified process to terminate it.
......
...@@ -147,7 +147,7 @@ Processes an asynchronous function and returns a promise version. ...@@ -147,7 +147,7 @@ Processes an asynchronous function and returns a promise version.
### constructor ### constructor
constructor(encoding?:string, options?:{ fatal?:boolean;ignoreBOM?:boolean }) constructor(encoding?: string, options?: { fatal?: boolean;ignoreBOM?: boolean })
A constructor used to create a **TextDecoder** object. A constructor used to create a **TextDecoder** object.
...@@ -168,13 +168,13 @@ A constructor used to create a **TextDecoder** object. ...@@ -168,13 +168,13 @@ A constructor used to create a **TextDecoder** object.
**Example** **Example**
``` ```
var textDecoder = new util.TextDecoder("utf-8",{ignoreBOM:true}); var textDecoder = new util.TextDecoder("utf-8",{ignoreBOM: true});
``` ```
### decode ### decode
decode(input: Unit8Array, options?:{stream?:false}): string decode(input: Unit8Array, options?: {stream?: false}): string
Decodes the input content. Decodes the input content.
...@@ -199,7 +199,7 @@ Decodes the input content. ...@@ -199,7 +199,7 @@ Decodes the input content.
**Example** **Example**
``` ```
var textDecoder = new util.TextDecoder("utf-8",{ignoreBOM:true}); var textDecoder = new util.TextDecoder("utf-8",{ignoreBOM: true});
var result = new Uint8Array(6); var result = new Uint8Array(6);
result[0] = 0xEF; result[0] = 0xEF;
result[1] = 0xBB; result[1] = 0xBB;
...@@ -211,7 +211,7 @@ Decodes the input content. ...@@ -211,7 +211,7 @@ Decodes the input content.
for(var j= 0; j < 6; j++) { for(var j= 0; j < 6; j++) {
console.log(result[j]); console.log(result[j]);
} }
var retStr = textDecoder.decode( result , {stream:false}); var retStr = textDecoder.decode( result , {stream: false});
console.log("retStr = " + retStr); console.log("retStr = " + retStr);
``` ```
...@@ -243,7 +243,7 @@ A constructor used to create a **TextEncoder** object. ...@@ -243,7 +243,7 @@ A constructor used to create a **TextEncoder** object.
### encode ### encode
encode(input?:string):Uint8Array encode(input?: string): Uint8Array
Encodes the input content. Encodes the input content.
...@@ -269,7 +269,7 @@ Encodes the input content. ...@@ -269,7 +269,7 @@ Encodes the input content.
### encodeInto ### encodeInto
encodeInto(input:string, dest:Uint8Array, ):{ read:number; written:number } encodeInto(input: string, dest: Uint8Array, ): { read: number; written: number }
Stores the UTF-8 encoded text. Stores the UTF-8 encoded text.
...@@ -299,7 +299,7 @@ Stores the UTF-8 encoded text. ...@@ -299,7 +299,7 @@ Stores the UTF-8 encoded text.
### constructor<sup>8+</sup> ### constructor<sup>8+</sup>
constructor(numerator:number,denominator:number) constructor(numerator: number,denominator: number)
A constructor used to create a **RationalNumber** object. A constructor used to create a **RationalNumber** object.
...@@ -319,7 +319,7 @@ A constructor used to create a **RationalNumber** object. ...@@ -319,7 +319,7 @@ A constructor used to create a **RationalNumber** object.
### createRationalFromString<sup>8+</sup> ### createRationalFromString<sup>8+</sup>
static createRationalFromString​(rationalString:string):RationalNumber​ static createRationalFromString​(rationalString: string): RationalNumber​
Creates a **RationalNumber** object based on the given string. Creates a **RationalNumber** object based on the given string.
...@@ -344,7 +344,7 @@ Creates a **RationalNumber** object based on the given string. ...@@ -344,7 +344,7 @@ Creates a **RationalNumber** object based on the given string.
### compareTo<sup>8+</sup> ### compareTo<sup>8+</sup>
compareTo​(another:RationalNumber):number​ compareTo​(another: RationalNumber): number​
Compares this **RationalNumber** object with a given object. Compares this **RationalNumber** object with a given object.
...@@ -370,7 +370,7 @@ Compares this **RationalNumber** object with a given object. ...@@ -370,7 +370,7 @@ Compares this **RationalNumber** object with a given object.
### valueOf<sup>8+</sup> ### valueOf<sup>8+</sup>
valueOf():number valueOf(): number
Obtains the value of this **RationalNumber** object as an integer or a floating-point number. Obtains the value of this **RationalNumber** object as an integer or a floating-point number.
...@@ -390,7 +390,7 @@ Obtains the value of this **RationalNumber** object as an integer or a floating- ...@@ -390,7 +390,7 @@ Obtains the value of this **RationalNumber** object as an integer or a floating-
### equals<sup>8+</sup> ### equals<sup>8+</sup>
equals​(obj:Object):boolean equals​(obj: Object): boolean
Checks whether this **RationalNumber** object equals the given object. Checks whether this **RationalNumber** object equals the given object.
...@@ -416,7 +416,7 @@ Checks whether this **RationalNumber** object equals the given object. ...@@ -416,7 +416,7 @@ Checks whether this **RationalNumber** object equals the given object.
### getCommonDivisor<sup>8+</sup> ### getCommonDivisor<sup>8+</sup>
static getCommonDivisor​(number1:number,number2:number):number static getCommonDivisor​(number1: number,number2: number): number
Obtains the greatest common divisor of two specified integers. Obtains the greatest common divisor of two specified integers.
...@@ -442,7 +442,7 @@ Obtains the greatest common divisor of two specified integers. ...@@ -442,7 +442,7 @@ Obtains the greatest common divisor of two specified integers.
### getNumerator<sup>8+</sup> ### getNumerator<sup>8+</sup>
getNumerator​():number getNumerator​(): number
Obtains the numerator of this **RationalNumber** object. Obtains the numerator of this **RationalNumber** object.
...@@ -463,7 +463,7 @@ Obtains the numerator of this **RationalNumber** object. ...@@ -463,7 +463,7 @@ Obtains the numerator of this **RationalNumber** object.
### getDenominator<sup>8+</sup> ### getDenominator<sup>8+</sup>
getDenominator​():number getDenominator​(): number
Obtains the denominator of this **RationalNumber** object. Obtains the denominator of this **RationalNumber** object.
...@@ -483,7 +483,7 @@ Obtains the denominator of this **RationalNumber** object. ...@@ -483,7 +483,7 @@ Obtains the denominator of this **RationalNumber** object.
### isZero<sup>8+</sup> ### isZero<sup>8+</sup>
isZero​():boolean isZero​(): boolean
Checks whether this **RationalNumber** object is **0**. Checks whether this **RationalNumber** object is **0**.
...@@ -503,7 +503,7 @@ Checks whether this **RationalNumber** object is **0**. ...@@ -503,7 +503,7 @@ Checks whether this **RationalNumber** object is **0**.
### isNaN<sup>8+</sup> ### isNaN<sup>8+</sup>
isNaN​():boolean isNaN​(): boolean
Checks whether this **RationalNumber** object is a Not a Number (NaN). Checks whether this **RationalNumber** object is a Not a Number (NaN).
...@@ -523,7 +523,7 @@ Checks whether this **RationalNumber** object is a Not a Number (NaN). ...@@ -523,7 +523,7 @@ Checks whether this **RationalNumber** object is a Not a Number (NaN).
### isFinite<sup>8+</sup> ### isFinite<sup>8+</sup>
isFinite​():boolean isFinite​(): boolean
Checks whether this **RationalNumber** object represents a finite value. Checks whether this **RationalNumber** object represents a finite value.
...@@ -543,7 +543,7 @@ Checks whether this **RationalNumber** object represents a finite value. ...@@ -543,7 +543,7 @@ Checks whether this **RationalNumber** object represents a finite value.
### toString<sup>8+</sup> ### toString<sup>8+</sup>
toString​():string toString​(): string
Obtains the string representation of this **RationalNumber** object. Obtains the string representation of this **RationalNumber** object.
...@@ -581,7 +581,7 @@ Obtains the string representation of this **RationalNumber** object. ...@@ -581,7 +581,7 @@ Obtains the string representation of this **RationalNumber** object.
### constructor<sup>8+</sup> ### constructor<sup>8+</sup>
constructor(capacity?:number) constructor(capacity?: number)
A constructor used to create an **LruBuffer** instance. The default capacity of the buffer is 64. A constructor used to create an **LruBuffer** instance. The default capacity of the buffer is 64.
...@@ -600,7 +600,7 @@ A constructor used to create an **LruBuffer** instance. The default capacity of ...@@ -600,7 +600,7 @@ A constructor used to create an **LruBuffer** instance. The default capacity of
### updateCapacity<sup>8+</sup> ### updateCapacity<sup>8+</sup>
updateCapacity(newCapacity:number):void updateCapacity(newCapacity: number): void
Changes the **LruBuffer** capacity. If the new capacity is less than or equal to **0**, an exception will be thrown. Changes the **LruBuffer** capacity. If the new capacity is less than or equal to **0**, an exception will be thrown.
...@@ -620,7 +620,7 @@ Changes the **LruBuffer** capacity. If the new capacity is less than or equal to ...@@ -620,7 +620,7 @@ Changes the **LruBuffer** capacity. If the new capacity is less than or equal to
### toString<sup>8+</sup> ### toString<sup>8+</sup>
toString():string toString(): string
Obtains the string representation of this **LruBuffer** object. Obtains the string representation of this **LruBuffer** object.
...@@ -643,7 +643,7 @@ Obtains the string representation of this **LruBuffer** object. ...@@ -643,7 +643,7 @@ Obtains the string representation of this **LruBuffer** object.
### getCapacity<sup>8+</sup> ### getCapacity<sup>8+</sup>
getCapacity():number getCapacity(): number
Obtains the capacity of this buffer. Obtains the capacity of this buffer.
...@@ -663,7 +663,7 @@ Obtains the capacity of this buffer. ...@@ -663,7 +663,7 @@ Obtains the capacity of this buffer.
### clear<sup>8+</sup> ### clear<sup>8+</sup>
clear():void clear(): void
Clears key-value pairs from this buffer. The **afterRemoval()** method will be called to perform subsequent operations. Clears key-value pairs from this buffer. The **afterRemoval()** method will be called to perform subsequent operations.
...@@ -680,7 +680,7 @@ Clears key-value pairs from this buffer. The **afterRemoval()** method will be c ...@@ -680,7 +680,7 @@ Clears key-value pairs from this buffer. The **afterRemoval()** method will be c
### getCreateCount<sup>8+</sup> ### getCreateCount<sup>8+</sup>
getCreateCount():number getCreateCount(): number
Obtains the number of return values for **createDefault()**. Obtains the number of return values for **createDefault()**.
...@@ -701,7 +701,7 @@ Obtains the number of return values for **createDefault()**. ...@@ -701,7 +701,7 @@ Obtains the number of return values for **createDefault()**.
### getMissCount<sup>8+</sup> ### getMissCount<sup>8+</sup>
getMissCount():number getMissCount(): number
Obtains the number of times that the queried values are mismatched. Obtains the number of times that the queried values are mismatched.
...@@ -723,7 +723,7 @@ Obtains the number of times that the queried values are mismatched. ...@@ -723,7 +723,7 @@ Obtains the number of times that the queried values are mismatched.
### getRemovalCount<sup>8+</sup> ### getRemovalCount<sup>8+</sup>
getRemovalCount():number getRemovalCount(): number
Obtains the number of removals from this buffer. Obtains the number of removals from this buffer.
...@@ -746,7 +746,7 @@ Obtains the number of removals from this buffer. ...@@ -746,7 +746,7 @@ Obtains the number of removals from this buffer.
### getMatchCount<sup>8+</sup> ### getMatchCount<sup>8+</sup>
getMatchCount():number getMatchCount(): number
Obtains the number of times that the queried values are matched. Obtains the number of times that the queried values are matched.
...@@ -768,7 +768,7 @@ Obtains the number of times that the queried values are matched. ...@@ -768,7 +768,7 @@ Obtains the number of times that the queried values are matched.
### getPutCount<sup>8+</sup> ### getPutCount<sup>8+</sup>
getPutCount():number getPutCount(): number
Obtains the number of additions to this buffer. Obtains the number of additions to this buffer.
...@@ -789,7 +789,7 @@ Obtains the number of additions to this buffer. ...@@ -789,7 +789,7 @@ Obtains the number of additions to this buffer.
### isEmpty<sup>8+</sup> ### isEmpty<sup>8+</sup>
isEmpty():boolean isEmpty(): boolean
Checks whether this buffer is empty. Checks whether this buffer is empty.
...@@ -810,7 +810,7 @@ Checks whether this buffer is empty. ...@@ -810,7 +810,7 @@ Checks whether this buffer is empty.
### get<sup>8+</sup> ### get<sup>8+</sup>
get(key:K):V | undefined get(key: K): V | undefined
Obtains the value of the specified key. Obtains the value of the specified key.
...@@ -836,7 +836,7 @@ Obtains the value of the specified key. ...@@ -836,7 +836,7 @@ Obtains the value of the specified key.
### put<sup>8+</sup> ### put<sup>8+</sup>
put(key:K,value:V):V put(key: K,value: V): V
Adds a key-value pair to this buffer. Adds a key-value pair to this buffer.
...@@ -862,7 +862,7 @@ Adds a key-value pair to this buffer. ...@@ -862,7 +862,7 @@ Adds a key-value pair to this buffer.
### values<sup>8+</sup> ### values<sup>8+</sup>
values():V[] values(): V[]
Obtains all values in this buffer, listed from the most to the least recently accessed. Obtains all values in this buffer, listed from the most to the least recently accessed.
...@@ -885,7 +885,7 @@ Obtains all values in this buffer, listed from the most to the least recently ac ...@@ -885,7 +885,7 @@ Obtains all values in this buffer, listed from the most to the least recently ac
### keys<sup>8+</sup> ### keys<sup>8+</sup>
keys():K[] keys(): K[]
Obtains all keys in this buffer, listed from the most to the least recently accessed. Obtains all keys in this buffer, listed from the most to the least recently accessed.
...@@ -906,7 +906,7 @@ Obtains all keys in this buffer, listed from the most to the least recently acce ...@@ -906,7 +906,7 @@ Obtains all keys in this buffer, listed from the most to the least recently acce
### remove<sup>8+</sup> ### remove<sup>8+</sup>
remove(key:K):V | undefined remove(key: K): V | undefined
Removes the specified key and its value from this buffer. Removes the specified key and its value from this buffer.
...@@ -932,7 +932,7 @@ Removes the specified key and its value from this buffer. ...@@ -932,7 +932,7 @@ Removes the specified key and its value from this buffer.
### afterRemoval<sup>8+</sup> ### afterRemoval<sup>8+</sup>
afterRemoval(isEvict:boolean,key:K,value:V,newValue:V):void afterRemoval(isEvict: boolean,key: K,value: V,newValue: V): void
Performs subsequent operations after a value is removed. Performs subsequent operations after a value is removed.
...@@ -977,7 +977,7 @@ Performs subsequent operations after a value is removed. ...@@ -977,7 +977,7 @@ Performs subsequent operations after a value is removed.
### contains<sup>8+</sup> ### contains<sup>8+</sup>
contains(key:K):boolean contains(key: K): boolean
Checks whether this buffer contains the specified key. Checks whether this buffer contains the specified key.
...@@ -1003,7 +1003,7 @@ Checks whether this buffer contains the specified key. ...@@ -1003,7 +1003,7 @@ Checks whether this buffer contains the specified key.
### createDefault<sup>8+</sup> ### createDefault<sup>8+</sup>
createDefault(key:K):V createDefault(key: K): V
Creates a value if the value of the specified key is not available. Creates a value if the value of the specified key is not available.
...@@ -1028,7 +1028,7 @@ Creates a value if the value of the specified key is not available. ...@@ -1028,7 +1028,7 @@ Creates a value if the value of the specified key is not available.
### entries<sup>8+</sup> ### entries<sup>8+</sup>
entries():IterableIterator&lt;[K,V]&gt; entries(): IterableIterator&lt;[K,V]&gt;
Obtains a new iterator object that contains all key-value pairs in this object. Obtains a new iterator object that contains all key-value pairs in this object.
...@@ -1078,7 +1078,7 @@ Defines the type of values in a **Scope** object. The value type can be **ScopeC ...@@ -1078,7 +1078,7 @@ Defines the type of values in a **Scope** object. The value type can be **ScopeC
The values of the **ScopeComparable** type are used to implement the **compareTo** method. Therefore, ensure that the input parameters are comparable. The values of the **ScopeComparable** type are used to implement the **compareTo** method. Therefore, ensure that the input parameters are comparable.
``` ```
interface ScopeComparable{ interface ScopeComparable{
compareTo(other:ScopeComparable):boolean; compareTo(other: ScopeComparable): boolean;
} }
type ScopeType = ScopeComparable | number; type ScopeType = ScopeComparable | number;
``` ```
...@@ -1108,7 +1108,7 @@ class Temperature{ ...@@ -1108,7 +1108,7 @@ class Temperature{
### constructor<sup>8+</sup> ### constructor<sup>8+</sup>
constructor(lowerObj:ScopeType,upperObje:ScopeType) constructor(lowerObj: ScopeType,upperObje: ScopeType)
A constructor used to create a **Scope** object with the specified upper and lower limits. A constructor used to create a **Scope** object with the specified upper and lower limits.
...@@ -1130,7 +1130,7 @@ A constructor used to create a **Scope** object with the specified upper and low ...@@ -1130,7 +1130,7 @@ A constructor used to create a **Scope** object with the specified upper and low
### toString<sup>8+</sup> ### toString<sup>8+</sup>
toString():string toString(): string
Obtains a string representation that contains this **Scope**. Obtains a string representation that contains this **Scope**.
...@@ -1152,7 +1152,7 @@ Obtains a string representation that contains this **Scope**. ...@@ -1152,7 +1152,7 @@ Obtains a string representation that contains this **Scope**.
### intersect<sup>8+</sup> ### intersect<sup>8+</sup>
intersect(range:Scope):Scope intersect(range: Scope): Scope
Obtains the intersection of this **Scope** and the given **Scope**. Obtains the intersection of this **Scope** and the given **Scope**.
...@@ -1182,7 +1182,7 @@ Obtains the intersection of this **Scope** and the given **Scope**. ...@@ -1182,7 +1182,7 @@ Obtains the intersection of this **Scope** and the given **Scope**.
### intersect<sup>8+</sup> ### intersect<sup>8+</sup>
intersect(lowerObj:ScopeType,upperObj:ScopeType):Scope intersect(lowerObj: ScopeType,upperObj: ScopeType): Scope
Obtains the intersection of this **Scope** and the given lower and upper limits. Obtains the intersection of this **Scope** and the given lower and upper limits.
...@@ -1212,7 +1212,7 @@ Obtains the intersection of this **Scope** and the given lower and upper limits. ...@@ -1212,7 +1212,7 @@ Obtains the intersection of this **Scope** and the given lower and upper limits.
### getUpper<sup>8+</sup> ### getUpper<sup>8+</sup>
getUpper():ScopeType getUpper(): ScopeType
Obtains the upper limit of this **Scope**. Obtains the upper limit of this **Scope**.
...@@ -1235,7 +1235,7 @@ Obtains the upper limit of this **Scope**. ...@@ -1235,7 +1235,7 @@ Obtains the upper limit of this **Scope**.
### getLower<sup>8+</sup> ### getLower<sup>8+</sup>
getLower():ScopeType getLower(): ScopeType
Obtains the lower limit of this **Scope**. Obtains the lower limit of this **Scope**.
...@@ -1257,7 +1257,7 @@ Obtains the lower limit of this **Scope**. ...@@ -1257,7 +1257,7 @@ Obtains the lower limit of this **Scope**.
### expand<sup>8+</sup> ### expand<sup>8+</sup>
expand(lowerObj:ScopeType,upperObj:ScopeType):Scope expand(lowerObj: ScopeType,upperObj: ScopeType): Scope
Obtains the union set of this **Scope** and the given lower and upper limits. Obtains the union set of this **Scope** and the given lower and upper limits.
...@@ -1317,7 +1317,7 @@ Obtains the union set of this **Scope** and the given **Scope**. ...@@ -1317,7 +1317,7 @@ Obtains the union set of this **Scope** and the given **Scope**.
### expand<sup>8+</sup> ### expand<sup>8+</sup>
expand(value:ScopeType):Scope expand(value: ScopeType): Scope
Obtains the union set of this **Scope** and the given value. Obtains the union set of this **Scope** and the given value.
...@@ -1345,7 +1345,7 @@ Obtains the union set of this **Scope** and the given value. ...@@ -1345,7 +1345,7 @@ Obtains the union set of this **Scope** and the given value.
### contains<sup>8+</sup> ### contains<sup>8+</sup>
contains(value:ScopeType):boolean contains(value: ScopeType): boolean
Checks whether a value is within this **Scope**. Checks whether a value is within this **Scope**.
...@@ -1373,7 +1373,7 @@ Checks whether a value is within this **Scope**. ...@@ -1373,7 +1373,7 @@ Checks whether a value is within this **Scope**.
### contains<sup>8+</sup> ### contains<sup>8+</sup>
contains(range:Scope):boolean contains(range: Scope): boolean
Checks whether a range is within this **Scope**. Checks whether a range is within this **Scope**.
...@@ -1403,7 +1403,7 @@ Checks whether a range is within this **Scope**. ...@@ -1403,7 +1403,7 @@ Checks whether a range is within this **Scope**.
### clamp<sup>8+</sup> ### clamp<sup>8+</sup>
clamp(value:ScopeType):ScopeType clamp(value: ScopeType): ScopeType
Limits a value to this **Scope**. Limits a value to this **Scope**.
...@@ -1448,7 +1448,7 @@ A constructor used to create a **Base64** object. ...@@ -1448,7 +1448,7 @@ A constructor used to create a **Base64** object.
### encodeSync<sup>8+</sup> ### encodeSync<sup>8+</sup>
encodeSync(src:Uint8Array):Uint8Array encodeSync(src: Uint8Array): Uint8Array
Encodes the input content. Encodes the input content.
...@@ -1474,7 +1474,7 @@ Encodes the input content. ...@@ -1474,7 +1474,7 @@ Encodes the input content.
### encodeToStringSync<sup>8+</sup> ### encodeToStringSync<sup>8+</sup>
encodeToStringSync(src:Uint8Array):string encodeToStringSync(src: Uint8Array): string
Encodes the input content. Encodes the input content.
...@@ -1500,7 +1500,7 @@ Encodes the input content. ...@@ -1500,7 +1500,7 @@ Encodes the input content.
### decodeSync<sup>8+</sup> ### decodeSync<sup>8+</sup>
decodeSync(src:Uint8Array | string):Uint8Array decodeSync(src: Uint8Array | string): Uint8Array
Decodes the input content. Decodes the input content.
...@@ -1526,7 +1526,7 @@ Decodes the input content. ...@@ -1526,7 +1526,7 @@ Decodes the input content.
### encode<sup>8+</sup> ### encode<sup>8+</sup>
encode(src:Uint8Array):Promise&lt;Uint8Array&gt; encode(src: Uint8Array): Promise&lt;Uint8Array&gt;
Encodes the input content asynchronously. Encodes the input content asynchronously.
...@@ -1557,7 +1557,7 @@ Encodes the input content asynchronously. ...@@ -1557,7 +1557,7 @@ Encodes the input content asynchronously.
### encodeToString<sup>8+</sup> ### encodeToString<sup>8+</sup>
encodeToString(src:Uint8Array):Promise&lt;string&gt; encodeToString(src: Uint8Array): Promise&lt;string&gt;
Encodes the input content asynchronously. Encodes the input content asynchronously.
...@@ -1585,7 +1585,7 @@ Encodes the input content asynchronously. ...@@ -1585,7 +1585,7 @@ Encodes the input content asynchronously.
### decode<sup>8+</sup> ### decode<sup>8+</sup>
decode(src:Uint8Array | string):Promise&lt;Uint8Array&gt; decode(src: Uint8Array | string): Promise&lt;Uint8Array&gt;
Decodes the input content asynchronously. Decodes the input content asynchronously.
...@@ -1633,7 +1633,7 @@ A constructor used to create a **Types** object. ...@@ -1633,7 +1633,7 @@ A constructor used to create a **Types** object.
### isAnyArrayBuffer<sup>8+</sup> ### isAnyArrayBuffer<sup>8+</sup>
isAnyArrayBuffer(value: Object):boolean isAnyArrayBuffer(value: Object): boolean
Checks whether the input value is of the **ArrayBuffer** type. Checks whether the input value is of the **ArrayBuffer** type.
...@@ -1658,7 +1658,7 @@ Checks whether the input value is of the **ArrayBuffer** type. ...@@ -1658,7 +1658,7 @@ Checks whether the input value is of the **ArrayBuffer** type.
### isArrayBufferView<sup>8+</sup> ### isArrayBufferView<sup>8+</sup>
isArrayBufferView(value: Object):boolean isArrayBufferView(value: Object): boolean
Checks whether the input value is of the **ArrayBufferView** type. Checks whether the input value is of the **ArrayBufferView** type.
...@@ -1685,7 +1685,7 @@ Checks whether the input value is of the **ArrayBufferView** type. ...@@ -1685,7 +1685,7 @@ Checks whether the input value is of the **ArrayBufferView** type.
### isArgumentsObject<sup>8+</sup> ### isArgumentsObject<sup>8+</sup>
isArgumentsObject(value: Object):boolean isArgumentsObject(value: Object): boolean
Checks whether the input value is of the **arguments** type. Checks whether the input value is of the **arguments** type.
...@@ -1713,7 +1713,7 @@ Checks whether the input value is of the **arguments** type. ...@@ -1713,7 +1713,7 @@ Checks whether the input value is of the **arguments** type.
### isArrayBuffer<sup>8+</sup> ### isArrayBuffer<sup>8+</sup>
isArrayBuffer(value: Object):boolean isArrayBuffer(value: Object): boolean
Checks whether the input value is of the **ArrayBuffer** type. Checks whether the input value is of the **ArrayBuffer** type.
...@@ -1738,7 +1738,7 @@ Checks whether the input value is of the **ArrayBuffer** type. ...@@ -1738,7 +1738,7 @@ Checks whether the input value is of the **ArrayBuffer** type.
### isAsyncFunction<sup>8+</sup> ### isAsyncFunction<sup>8+</sup>
isAsyncFunction(value: Object):boolean isAsyncFunction(value: Object): boolean
Checks whether the input value is an asynchronous function. Checks whether the input value is an asynchronous function.
...@@ -1763,7 +1763,7 @@ Checks whether the input value is an asynchronous function. ...@@ -1763,7 +1763,7 @@ Checks whether the input value is an asynchronous function.
### isBooleanObject<sup>8+</sup> ### isBooleanObject<sup>8+</sup>
isBooleanObject(value: Object):boolean isBooleanObject(value: Object): boolean
Checks whether the input value is of the **Boolean** type. Checks whether the input value is of the **Boolean** type.
...@@ -1788,7 +1788,7 @@ Checks whether the input value is of the **Boolean** type. ...@@ -1788,7 +1788,7 @@ Checks whether the input value is of the **Boolean** type.
### isBoxedPrimitive<sup>8+</sup> ### isBoxedPrimitive<sup>8+</sup>
isBoxedPrimitive(value: Object):boolean isBoxedPrimitive(value: Object): boolean
Checks whether the input value is of the **Boolean**, **Number**, **String**, or **Symbol** type. Checks whether the input value is of the **Boolean**, **Number**, **String**, or **Symbol** type.
...@@ -1813,7 +1813,7 @@ Checks whether the input value is of the **Boolean**, **Number**, **String**, or ...@@ -1813,7 +1813,7 @@ Checks whether the input value is of the **Boolean**, **Number**, **String**, or
### isDataView<sup>8+</sup> ### isDataView<sup>8+</sup>
isDataView(value: Object):boolean isDataView(value: Object): boolean
Checks whether the input value is of the **DataView** type. Checks whether the input value is of the **DataView** type.
...@@ -1839,7 +1839,7 @@ Checks whether the input value is of the **DataView** type. ...@@ -1839,7 +1839,7 @@ Checks whether the input value is of the **DataView** type.
### isDate<sup>8+</sup> ### isDate<sup>8+</sup>
isDate(value: Object):boolean isDate(value: Object): boolean
Checks whether the input value is of the **Date** type. Checks whether the input value is of the **Date** type.
...@@ -1864,7 +1864,7 @@ Checks whether the input value is of the **Date** type. ...@@ -1864,7 +1864,7 @@ Checks whether the input value is of the **Date** type.
### isExternal<sup>8+</sup> ### isExternal<sup>8+</sup>
isExternal(value: Object):boolean isExternal(value: Object): boolean
Checks whether the input value is of the **native external** type. Checks whether the input value is of the **native external** type.
...@@ -1890,7 +1890,7 @@ Checks whether the input value is of the **native external** type. ...@@ -1890,7 +1890,7 @@ Checks whether the input value is of the **native external** type.
### isFloat32Array<sup>8+</sup> ### isFloat32Array<sup>8+</sup>
isFloat32Array(value: Object):boolean isFloat32Array(value: Object): boolean
Checks whether the input value is of the **Float32Array** type. Checks whether the input value is of the **Float32Array** type.
...@@ -1915,7 +1915,7 @@ Checks whether the input value is of the **Float32Array** type. ...@@ -1915,7 +1915,7 @@ Checks whether the input value is of the **Float32Array** type.
### isFloat64Array<sup>8+</sup> ### isFloat64Array<sup>8+</sup>
isFloat64Array(value: Object):boolean isFloat64Array(value: Object): boolean
Checks whether the input value is of the **Float64Array** type. Checks whether the input value is of the **Float64Array** type.
...@@ -1940,7 +1940,7 @@ Checks whether the input value is of the **Float64Array** type. ...@@ -1940,7 +1940,7 @@ Checks whether the input value is of the **Float64Array** type.
### isGeneratorFunction<sup>8+</sup> ### isGeneratorFunction<sup>8+</sup>
isGeneratorFunction(value: Object):boolean isGeneratorFunction(value: Object): boolean
Checks whether the input value is a generator function. Checks whether the input value is a generator function.
...@@ -1965,7 +1965,7 @@ Checks whether the input value is a generator function. ...@@ -1965,7 +1965,7 @@ Checks whether the input value is a generator function.
### isGeneratorObject<sup>8+</sup> ### isGeneratorObject<sup>8+</sup>
isGeneratorObject(value: Object):boolean isGeneratorObject(value: Object): boolean
Checks whether the input value is a generator object. Checks whether the input value is a generator object.
...@@ -1992,7 +1992,7 @@ Checks whether the input value is a generator object. ...@@ -1992,7 +1992,7 @@ Checks whether the input value is a generator object.
### isInt8Array<sup>8+</sup> ### isInt8Array<sup>8+</sup>
isInt8Array(value: Object):boolean isInt8Array(value: Object): boolean
Checks whether the input value is of the **Int8Array** type. Checks whether the input value is of the **Int8Array** type.
...@@ -2017,7 +2017,7 @@ Checks whether the input value is of the **Int8Array** type. ...@@ -2017,7 +2017,7 @@ Checks whether the input value is of the **Int8Array** type.
### isInt16Array<sup>8+</sup> ### isInt16Array<sup>8+</sup>
isInt16Array(value: Object):boolean isInt16Array(value: Object): boolean
Checks whether the input value is of the **Int16Array** type. Checks whether the input value is of the **Int16Array** type.
...@@ -2042,7 +2042,7 @@ Checks whether the input value is of the **Int16Array** type. ...@@ -2042,7 +2042,7 @@ Checks whether the input value is of the **Int16Array** type.
### isInt32Array<sup>8+</sup> ### isInt32Array<sup>8+</sup>
isInt32Array(value: Object):boolean isInt32Array(value: Object): boolean
Checks whether the input value is of the **Int32Array** type. Checks whether the input value is of the **Int32Array** type.
...@@ -2067,7 +2067,7 @@ Checks whether the input value is of the **Int32Array** type. ...@@ -2067,7 +2067,7 @@ Checks whether the input value is of the **Int32Array** type.
### isMap<sup>8+</sup> ### isMap<sup>8+</sup>
isMap(value: Object):boolean isMap(value: Object): boolean
Checks whether the input value is of the **Map** type. Checks whether the input value is of the **Map** type.
...@@ -2092,7 +2092,7 @@ Checks whether the input value is of the **Map** type. ...@@ -2092,7 +2092,7 @@ Checks whether the input value is of the **Map** type.
### isMapIterator<sup>8+</sup> ### isMapIterator<sup>8+</sup>
isMapIterator(value: Object):boolean isMapIterator(value: Object): boolean
Checks whether the input value is of the **MapIterator** type. Checks whether the input value is of the **MapIterator** type.
...@@ -2118,7 +2118,7 @@ Checks whether the input value is of the **MapIterator** type. ...@@ -2118,7 +2118,7 @@ Checks whether the input value is of the **MapIterator** type.
### isNativeError<sup>8+</sup> ### isNativeError<sup>8+</sup>
isNativeError(value: Object):boolean isNativeError(value: Object): boolean
Checks whether the input value is of the **Error** type. Checks whether the input value is of the **Error** type.
...@@ -2143,7 +2143,7 @@ Checks whether the input value is of the **Error** type. ...@@ -2143,7 +2143,7 @@ Checks whether the input value is of the **Error** type.
### isNumberObject<sup>8+</sup> ### isNumberObject<sup>8+</sup>
isNumberObject(value: Object):boolean isNumberObject(value: Object): boolean
Checks whether the input value is a number object. Checks whether the input value is a number object.
...@@ -2168,7 +2168,7 @@ Checks whether the input value is a number object. ...@@ -2168,7 +2168,7 @@ Checks whether the input value is a number object.
### isPromise<sup>8+</sup> ### isPromise<sup>8+</sup>
isPromise(value: Object):boolean isPromise(value: Object): boolean
Checks whether the input value is a promise. Checks whether the input value is a promise.
...@@ -2193,7 +2193,7 @@ Checks whether the input value is a promise. ...@@ -2193,7 +2193,7 @@ Checks whether the input value is a promise.
### isProxy<sup>8+</sup> ### isProxy<sup>8+</sup>
isProxy(value: Object):boolean isProxy(value: Object): boolean
Checks whether the input value is a proxy. Checks whether the input value is a proxy.
...@@ -2220,7 +2220,7 @@ Checks whether the input value is a proxy. ...@@ -2220,7 +2220,7 @@ Checks whether the input value is a proxy.
### isRegExp<sup>8+</sup> ### isRegExp<sup>8+</sup>
isRegExp(value: Object):boolean isRegExp(value: Object): boolean
Checks whether the input value is of the **RegExp** type. Checks whether the input value is of the **RegExp** type.
...@@ -2245,7 +2245,7 @@ Checks whether the input value is of the **RegExp** type. ...@@ -2245,7 +2245,7 @@ Checks whether the input value is of the **RegExp** type.
### isSet<sup>8+</sup> ### isSet<sup>8+</sup>
isSet(value: Object):boolean isSet(value: Object): boolean
Checks whether the input value is of the **Set** type. Checks whether the input value is of the **Set** type.
...@@ -2270,7 +2270,7 @@ Checks whether the input value is of the **Set** type. ...@@ -2270,7 +2270,7 @@ Checks whether the input value is of the **Set** type.
### isSetIterator<sup>8+</sup> ### isSetIterator<sup>8+</sup>
isSetIterator(value: Object):boolean isSetIterator(value: Object): boolean
Checks whether the input value is of the **SetIterator** type. Checks whether the input value is of the **SetIterator** type.
...@@ -2296,7 +2296,7 @@ Checks whether the input value is of the **SetIterator** type. ...@@ -2296,7 +2296,7 @@ Checks whether the input value is of the **SetIterator** type.
### isStringObject<sup>8+</sup> ### isStringObject<sup>8+</sup>
isStringObject(value: Object):boolean isStringObject(value: Object): boolean
Checks whether the input value is a string object. Checks whether the input value is a string object.
...@@ -2347,7 +2347,7 @@ Checks whether the input value is a symbol object. ...@@ -2347,7 +2347,7 @@ Checks whether the input value is a symbol object.
### isTypedArray<sup>8+</sup> ### isTypedArray<sup>8+</sup>
isTypedArray(value: Object):boolean isTypedArray(value: Object): boolean
Checks whether the input value is of the **TypedArray** type. Checks whether the input value is of the **TypedArray** type.
...@@ -2374,7 +2374,7 @@ Checks whether the input value is of the **TypedArray** type. ...@@ -2374,7 +2374,7 @@ Checks whether the input value is of the **TypedArray** type.
### isUint8Array<sup>8+</sup> ### isUint8Array<sup>8+</sup>
isUint8Array(value: Object):boolean isUint8Array(value: Object): boolean
Checks whether the input value is of the **Uint8Array** type. Checks whether the input value is of the **Uint8Array** type.
...@@ -2399,7 +2399,7 @@ Checks whether the input value is of the **Uint8Array** type. ...@@ -2399,7 +2399,7 @@ Checks whether the input value is of the **Uint8Array** type.
### isUint8ClampedArray<sup>8+</sup> ### isUint8ClampedArray<sup>8+</sup>
isUint8ClampedArray(value: Object):boolean isUint8ClampedArray(value: Object): boolean
Checks whether the input value is of the **Uint8ClampedArray** type. Checks whether the input value is of the **Uint8ClampedArray** type.
...@@ -2424,7 +2424,7 @@ Checks whether the input value is of the **Uint8ClampedArray** type. ...@@ -2424,7 +2424,7 @@ Checks whether the input value is of the **Uint8ClampedArray** type.
### isUint16Array<sup>8+</sup> ### isUint16Array<sup>8+</sup>
isUint16Array(value: Object):boolean isUint16Array(value: Object): boolean
Checks whether the input value is of the **Uint16Array** type. Checks whether the input value is of the **Uint16Array** type.
...@@ -2449,7 +2449,7 @@ Checks whether the input value is of the **Uint16Array** type. ...@@ -2449,7 +2449,7 @@ Checks whether the input value is of the **Uint16Array** type.
### isUint32Array<sup>8+</sup> ### isUint32Array<sup>8+</sup>
isUint32Array(value: Object):boolean isUint32Array(value: Object): boolean
Checks whether the input value is of the **Uint32Array** type. Checks whether the input value is of the **Uint32Array** type.
...@@ -2474,7 +2474,7 @@ Checks whether the input value is of the **Uint32Array** type. ...@@ -2474,7 +2474,7 @@ Checks whether the input value is of the **Uint32Array** type.
### isWeakMap<sup>8+</sup> ### isWeakMap<sup>8+</sup>
isWeakMap(value: Object):boolean isWeakMap(value: Object): boolean
Checks whether the input value is of the **WeakMap** type. Checks whether the input value is of the **WeakMap** type.
...@@ -2499,7 +2499,7 @@ Checks whether the input value is of the **WeakMap** type. ...@@ -2499,7 +2499,7 @@ Checks whether the input value is of the **WeakMap** type.
### isWeakSet<sup>8+</sup> ### isWeakSet<sup>8+</sup>
isWeakSet(value: Object):boolean isWeakSet(value: Object): boolean
Checks whether the input value is of the **WeakSet** type. Checks whether the input value is of the **WeakSet** type.
......
...@@ -180,7 +180,7 @@ var result = process.isIsolatedProcess(); ...@@ -180,7 +180,7 @@ var result = process.isIsolatedProcess();
## process.isAppUid<sup>8+</sup> ## process.isAppUid<sup>8+</sup>
isAppUid(v:number): boolean isAppUid(v: number): boolean
判断uid是否属于应用程序。 判断uid是否属于应用程序。
...@@ -228,7 +228,7 @@ var ressult = process.is64Bit(); ...@@ -228,7 +228,7 @@ var ressult = process.is64Bit();
## process.getUidForName<sup>8+</sup> ## process.getUidForName<sup>8+</sup>
getUidForName(v:string): number getUidForName(v: string): number
通过进程名获取进程uid。 通过进程名获取进程uid。
...@@ -255,7 +255,7 @@ var pres = process.getUidForName("tool") ...@@ -255,7 +255,7 @@ var pres = process.getUidForName("tool")
## process.getThreadPriority<sup>8+</sup> ## process.getThreadPriority<sup>8+</sup>
getThreadPriority(v:number): number getThreadPriority(v: number): number
根据指定的tid获取线程优先级。 根据指定的tid获取线程优先级。
...@@ -324,7 +324,7 @@ var result = process.getPastCpuTime() ; ...@@ -324,7 +324,7 @@ var result = process.getPastCpuTime() ;
## process.getSystemConfig<sup>8+</sup> ## process.getSystemConfig<sup>8+</sup>
getSystemConfig(name:number): number getSystemConfig(name: number): number
获取系统配置信息。 获取系统配置信息。
...@@ -352,7 +352,7 @@ var pres = process.getSystemConfig(_SC_ARG_MAX) ...@@ -352,7 +352,7 @@ var pres = process.getSystemConfig(_SC_ARG_MAX)
## process.getEnvironmentVar<sup>8+</sup> ## process.getEnvironmentVar<sup>8+</sup>
getEnvironmentVar(name:string): string getEnvironmentVar(name: string): string
用该方法获取环境变量对应的值。 用该方法获取环境变量对应的值。
...@@ -451,7 +451,7 @@ on(type: string, listener: EventListener): void ...@@ -451,7 +451,7 @@ on(type: string, listener: EventListener): void
| 名称 | 说明 | | 名称 | 说明 |
| -------- | -------- | | -------- | -------- |
| EventListener&nbsp;=&nbsp;(evt:&nbsp;Object)&nbsp;=&gt;&nbsp;void | 用户存储的事件。 | | EventListener&nbsp;=&nbsp;(evt: &nbsp;Object)&nbsp;=&gt;&nbsp;void | 用户存储的事件。 |
**示例:** **示例:**
......
...@@ -147,7 +147,7 @@ promiseWrapper(original: (err: Object, value: Object) =&gt; void): Object ...@@ -147,7 +147,7 @@ promiseWrapper(original: (err: Object, value: Object) =&gt; void): Object
### constructor ### constructor
constructor(encoding?:string, options?:{ fatal?:boolean;ignoreBOM?:boolean }) constructor(encoding?: string, options?: { fatal?: boolean;ignoreBOM?: boolean })
TextDecoder的构造函数。 TextDecoder的构造函数。
...@@ -168,13 +168,13 @@ TextDecoder的构造函数。 ...@@ -168,13 +168,13 @@ TextDecoder的构造函数。
**示例:** **示例:**
``` ```
var textDecoder = new util.TextDecoder("utf-8",{ignoreBOM:true}); var textDecoder = new util.TextDecoder("utf-8",{ignoreBOM: true});
``` ```
### decode ### decode
decode(input: Unit8Array, options?:{stream?:false}): string decode(input: Unit8Array, options?: {stream?: false}): string
通过输入参数解码后输出对应文本。 通过输入参数解码后输出对应文本。
...@@ -199,7 +199,7 @@ decode(input: Unit8Array, options?:{stream?:false}): string ...@@ -199,7 +199,7 @@ decode(input: Unit8Array, options?:{stream?:false}): string
**示例:** **示例:**
``` ```
var textDecoder = new util.TextDecoder("utf-8",{ignoreBOM:true}); var textDecoder = new util.TextDecoder("utf-8",{ignoreBOM: true});
var result = new Uint8Array(6); var result = new Uint8Array(6);
result[0] = 0xEF; result[0] = 0xEF;
result[1] = 0xBB; result[1] = 0xBB;
...@@ -211,7 +211,7 @@ decode(input: Unit8Array, options?:{stream?:false}): string ...@@ -211,7 +211,7 @@ decode(input: Unit8Array, options?:{stream?:false}): string
for(var j= 0; j < 6; j++) { for(var j= 0; j < 6; j++) {
console.log(result[j]); console.log(result[j]);
} }
var retStr = textDecoder.decode( result , {stream:false}); var retStr = textDecoder.decode( result , {stream: false});
console.log("retStr = " + retStr); console.log("retStr = " + retStr);
``` ```
...@@ -243,7 +243,7 @@ TextEncoder的构造函数。 ...@@ -243,7 +243,7 @@ TextEncoder的构造函数。
### encode ### encode
encode(input?:string):Uint8Array encode(input?: string): Uint8Array
通过输入参数编码后输出对应文本。 通过输入参数编码后输出对应文本。
...@@ -269,7 +269,7 @@ encode(input?:string):Uint8Array ...@@ -269,7 +269,7 @@ encode(input?:string):Uint8Array
### encodeInto ### encodeInto
encodeInto(input:string, dest:Uint8Array, ):{ read:number; written:number } encodeInto(input: string, dest: Uint8Array, ): { read: number; written: number }
放置生成的UTF-8编码文本。 放置生成的UTF-8编码文本。
...@@ -299,7 +299,7 @@ encodeInto(input:string, dest:Uint8Array, ):{ read:number; written:number } ...@@ -299,7 +299,7 @@ encodeInto(input:string, dest:Uint8Array, ):{ read:number; written:number }
### constructor<sup>8+</sup> ### constructor<sup>8+</sup>
constructor(numerator:number,denominator:number) constructor(numerator: number,denominator: number)
RationalNumber的构造函数。 RationalNumber的构造函数。
...@@ -319,7 +319,7 @@ RationalNumber的构造函数。 ...@@ -319,7 +319,7 @@ RationalNumber的构造函数。
### createRationalFromString<sup>8+</sup> ### createRationalFromString<sup>8+</sup>
static createRationalFromString​(rationalString:string):RationalNumber​ static createRationalFromString​(rationalString: string): RationalNumber​
基于给定的字符串创建一个RationalNumber对象。 基于给定的字符串创建一个RationalNumber对象。
...@@ -344,7 +344,7 @@ static createRationalFromString​(rationalString:string):RationalNumber​ ...@@ -344,7 +344,7 @@ static createRationalFromString​(rationalString:string):RationalNumber​
### compareTo<sup>8+</sup> ### compareTo<sup>8+</sup>
compareTo​(another:RationalNumber):number​ compareTo​(another: RationalNumber): number​
将当前的RationalNumber对象与给定的对象进行比较。 将当前的RationalNumber对象与给定的对象进行比较。
...@@ -370,7 +370,7 @@ compareTo​(another:RationalNumber):number​ ...@@ -370,7 +370,7 @@ compareTo​(another:RationalNumber):number​
### valueOf<sup>8+</sup> ### valueOf<sup>8+</sup>
valueOf():number valueOf(): number
以整数形式或者浮点数的形式获取当前RationalNumber对象的值。 以整数形式或者浮点数的形式获取当前RationalNumber对象的值。
...@@ -390,7 +390,7 @@ valueOf():number ...@@ -390,7 +390,7 @@ valueOf():number
### equals<sup>8+</sup> ### equals<sup>8+</sup>
equals​(obj:Object):boolean equals​(obj: Object): boolean
将当前的RationalNumber对象与给定的对象进行比较是否相等。 将当前的RationalNumber对象与给定的对象进行比较是否相等。
...@@ -416,7 +416,7 @@ equals​(obj:Object):boolean ...@@ -416,7 +416,7 @@ equals​(obj:Object):boolean
### getCommonDivisor<sup>8+</sup> ### getCommonDivisor<sup>8+</sup>
static getCommonDivisor​(number1:number,number2:number):number static getCommonDivisor​(number1: number,number2: number): number
获取两个指定整数的最大公约数。 获取两个指定整数的最大公约数。
...@@ -442,7 +442,7 @@ static getCommonDivisor​(number1:number,number2:number):number ...@@ -442,7 +442,7 @@ static getCommonDivisor​(number1:number,number2:number):number
### getNumerator<sup>8+</sup> ### getNumerator<sup>8+</sup>
getNumerator​():number getNumerator​(): number
获取当前RationalNumber对象的分子。 获取当前RationalNumber对象的分子。
...@@ -463,7 +463,7 @@ getNumerator​():number ...@@ -463,7 +463,7 @@ getNumerator​():number
### getDenominator<sup>8+</sup> ### getDenominator<sup>8+</sup>
getDenominator​():number getDenominator​(): number
获取当前RationalNumber对象的分母。 获取当前RationalNumber对象的分母。
...@@ -503,7 +503,7 @@ isZero​():boolean ...@@ -503,7 +503,7 @@ isZero​():boolean
### isNaN<sup>8+</sup> ### isNaN<sup>8+</sup>
isNaN​():boolean isNaN​(): boolean
检查当前RationalNumber对象是否表示非数字(NaN)值。 检查当前RationalNumber对象是否表示非数字(NaN)值。
...@@ -543,7 +543,7 @@ isFinite​():boolean ...@@ -543,7 +543,7 @@ isFinite​():boolean
### toString<sup>8+</sup> ### toString<sup>8+</sup>
toString​():string toString​(): string
获取当前RationalNumber对象的字符串表示形式。 获取当前RationalNumber对象的字符串表示形式。
...@@ -581,7 +581,7 @@ toString​():string ...@@ -581,7 +581,7 @@ toString​():string
### constructor<sup>8+</sup> ### constructor<sup>8+</sup>
constructor(capacity?:number) constructor(capacity?: number)
默认构造函数用于创建一个新的LruBuffer实例,默认容量为64。 默认构造函数用于创建一个新的LruBuffer实例,默认容量为64。
...@@ -600,7 +600,7 @@ constructor(capacity?:number) ...@@ -600,7 +600,7 @@ constructor(capacity?:number)
### updateCapacity<sup>8+</sup> ### updateCapacity<sup>8+</sup>
updateCapacity(newCapacity:number):void updateCapacity(newCapacity: number): void
将缓冲区容量更新为指定容量,如果newCapacity小于或等于0,则抛出异常。 将缓冲区容量更新为指定容量,如果newCapacity小于或等于0,则抛出异常。
...@@ -620,7 +620,7 @@ updateCapacity(newCapacity:number):void ...@@ -620,7 +620,7 @@ updateCapacity(newCapacity:number):void
### toString<sup>8+</sup> ### toString<sup>8+</sup>
toString():string toString(): string
返回对象的字符串表示形式。 返回对象的字符串表示形式。
...@@ -643,7 +643,7 @@ toString():string ...@@ -643,7 +643,7 @@ toString():string
### getCapacity<sup>8+</sup> ### getCapacity<sup>8+</sup>
getCapacity():number getCapacity(): number
获取当前缓冲区的容量。 获取当前缓冲区的容量。
...@@ -663,7 +663,7 @@ getCapacity():number ...@@ -663,7 +663,7 @@ getCapacity():number
### clear<sup>8+</sup> ### clear<sup>8+</sup>
clear():void clear(): void
从当前缓冲区清除键值对。后续会调用afterRemoval()方法执行后续操作。 从当前缓冲区清除键值对。后续会调用afterRemoval()方法执行后续操作。
...@@ -680,7 +680,7 @@ clear():void ...@@ -680,7 +680,7 @@ clear():void
### getCreateCount<sup>8+</sup> ### getCreateCount<sup>8+</sup>
getCreateCount():number getCreateCount(): number
获取createDefault()返回值的次数。 获取createDefault()返回值的次数。
...@@ -701,7 +701,7 @@ getCreateCount():number ...@@ -701,7 +701,7 @@ getCreateCount():number
### getMissCount<sup>8+</sup> ### getMissCount<sup>8+</sup>
getMissCount():number getMissCount(): number
获取查询值不匹配的次数。 获取查询值不匹配的次数。
...@@ -723,7 +723,7 @@ getMissCount():number ...@@ -723,7 +723,7 @@ getMissCount():number
### getRemovalCount<sup>8+</sup> ### getRemovalCount<sup>8+</sup>
getRemovalCount():number getRemovalCount(): number
获取从缓冲区中逐出值的次数。 获取从缓冲区中逐出值的次数。
...@@ -746,7 +746,7 @@ getRemovalCount():number ...@@ -746,7 +746,7 @@ getRemovalCount():number
### getMatchCount<sup>8+</sup> ### getMatchCount<sup>8+</sup>
getMatchCount():number getMatchCount(): number
获取查询值匹配成功的次数。 获取查询值匹配成功的次数。
...@@ -768,7 +768,7 @@ getMatchCount():number ...@@ -768,7 +768,7 @@ getMatchCount():number
### getPutCount<sup>8+</sup> ### getPutCount<sup>8+</sup>
getPutCount():number getPutCount(): number
获取将值添加到缓冲区的次数。 获取将值添加到缓冲区的次数。
...@@ -789,7 +789,7 @@ getPutCount():number ...@@ -789,7 +789,7 @@ getPutCount():number
### isEmpty<sup>8+</sup> ### isEmpty<sup>8+</sup>
isEmpty():boolean isEmpty(): boolean
检查当前缓冲区是否为空。 检查当前缓冲区是否为空。
...@@ -810,7 +810,7 @@ isEmpty():boolean ...@@ -810,7 +810,7 @@ isEmpty():boolean
### get<sup>8+</sup> ### get<sup>8+</sup>
get(key:K):V | undefined get(key: K): V | undefined
表示要查询的键。 表示要查询的键。
...@@ -836,7 +836,7 @@ get(key:K):V | undefined ...@@ -836,7 +836,7 @@ get(key:K):V | undefined
### put<sup>8+</sup> ### put<sup>8+</sup>
put(key:K,value:V):V put(key: K,value: V): V
将键值对添加到缓冲区。 将键值对添加到缓冲区。
...@@ -862,7 +862,7 @@ put(key:K,value:V):V ...@@ -862,7 +862,7 @@ put(key:K,value:V):V
### values<sup>8+</sup> ### values<sup>8+</sup>
values():V[] values(): V[]
获取当前缓冲区中所有值从最近访问到最近最少访问的顺序列表 。 获取当前缓冲区中所有值从最近访问到最近最少访问的顺序列表 。
...@@ -885,7 +885,7 @@ values():V[] ...@@ -885,7 +885,7 @@ values():V[]
### keys<sup>8+</sup> ### keys<sup>8+</sup>
keys():K[] keys(): K[]
获取当前缓冲区中所有键从最近访问到最近最少访问的升序列表。 获取当前缓冲区中所有键从最近访问到最近最少访问的升序列表。
...@@ -906,7 +906,7 @@ keys():K[] ...@@ -906,7 +906,7 @@ keys():K[]
### remove<sup>8+</sup> ### remove<sup>8+</sup>
remove(key:K):V | undefined remove(key: K): V | undefined
从当前缓冲区中删除指定的键及其关联的值。 从当前缓冲区中删除指定的键及其关联的值。
...@@ -932,7 +932,7 @@ remove(key:K):V | undefined ...@@ -932,7 +932,7 @@ remove(key:K):V | undefined
### afterRemoval<sup>8+</sup> ### afterRemoval<sup>8+</sup>
afterRemoval(isEvict:boolean,key:K,value:V,newValue:V):void afterRemoval(isEvict: boolean,key: K,value: V,newValue: V): void
删除值后执行后续操作。 删除值后执行后续操作。
...@@ -977,7 +977,7 @@ afterRemoval(isEvict:boolean,key:K,value:V,newValue:V):void ...@@ -977,7 +977,7 @@ afterRemoval(isEvict:boolean,key:K,value:V,newValue:V):void
### contains<sup>8+</sup> ### contains<sup>8+</sup>
contains(key:K):boolean contains(key: K): boolean
检查当前缓冲区是否包含指定的键。 检查当前缓冲区是否包含指定的键。
...@@ -1003,7 +1003,7 @@ contains(key:K):boolean ...@@ -1003,7 +1003,7 @@ contains(key:K):boolean
### createDefault<sup>8+</sup> ### createDefault<sup>8+</sup>
createDefault(key:K):V createDefault(key: K): V
如果未计算特定键的值,则执行后续操作,参数表示丢失的键,返回与键关联的值。 如果未计算特定键的值,则执行后续操作,参数表示丢失的键,返回与键关联的值。
...@@ -1028,7 +1028,7 @@ createDefault(key:K):V ...@@ -1028,7 +1028,7 @@ createDefault(key:K):V
### entries<sup>8+</sup> ### entries<sup>8+</sup>
entries():IterableIterator&lt;[K,V]&gt; entries(): IterableIterator&lt;[K,V]&gt;
允许迭代包含在这个对象中的所有键值对。 允许迭代包含在这个对象中的所有键值对。
...@@ -1078,7 +1078,7 @@ entries():IterableIterator&lt;[K,V]&gt; ...@@ -1078,7 +1078,7 @@ entries():IterableIterator&lt;[K,V]&gt;
ScopeComparable类型的值需要实现compareTo方法,确保传入的数据具有可比性。 ScopeComparable类型的值需要实现compareTo方法,确保传入的数据具有可比性。
``` ```
interface ScopeComparable{ interface ScopeComparable{
compareTo(other:ScopeComparable):boolean; compareTo(other: ScopeComparable): boolean;
} }
type ScopeType = ScopeComparable | number; type ScopeType = ScopeComparable | number;
``` ```
...@@ -1108,7 +1108,7 @@ class Temperature{ ...@@ -1108,7 +1108,7 @@ class Temperature{
### constructor<sup>8+</sup> ### constructor<sup>8+</sup>
constructor(lowerObj:ScopeType,upperObje:ScopeType) constructor(lowerObj: ScopeType,upperObje: ScopeType)
用于创建指定下限和上限的作用域实例的构造函数,返回一个Scope对象。 用于创建指定下限和上限的作用域实例的构造函数,返回一个Scope对象。
...@@ -1130,7 +1130,7 @@ constructor(lowerObj:ScopeType,upperObje:ScopeType) ...@@ -1130,7 +1130,7 @@ constructor(lowerObj:ScopeType,upperObje:ScopeType)
### toString<sup>8+</sup> ### toString<sup>8+</sup>
toString():string toString(): string
该字符串化方法返回一个包含当前范围的字符串表示形式。 该字符串化方法返回一个包含当前范围的字符串表示形式。
...@@ -1152,7 +1152,7 @@ toString():string ...@@ -1152,7 +1152,7 @@ toString():string
### intersect<sup>8+</sup> ### intersect<sup>8+</sup>
intersect(range:Scope):Scope intersect(range: Scope): Scope
获取给定范围和当前范围的交集。 获取给定范围和当前范围的交集。
...@@ -1212,7 +1212,7 @@ intersect(lowerObj:ScopeType,upperObj:ScopeType):Scope ...@@ -1212,7 +1212,7 @@ intersect(lowerObj:ScopeType,upperObj:ScopeType):Scope
### getUpper<sup>8+</sup> ### getUpper<sup>8+</sup>
getUpper():ScopeType getUpper(): ScopeType
获取当前范围的上限。 获取当前范围的上限。
...@@ -1235,7 +1235,7 @@ getUpper():ScopeType ...@@ -1235,7 +1235,7 @@ getUpper():ScopeType
### getLower<sup>8+</sup> ### getLower<sup>8+</sup>
getLower():ScopeType getLower(): ScopeType
获取当前范围的下限。 获取当前范围的下限。
...@@ -1257,7 +1257,7 @@ getLower():ScopeType ...@@ -1257,7 +1257,7 @@ getLower():ScopeType
### expand<sup>8+</sup> ### expand<sup>8+</sup>
expand(lowerObj:ScopeType,upperObj:ScopeType):Scope expand(lowerObj: ScopeType,upperObj: ScopeType): Scope
创建并返回包括当前范围和给定下限和上限的并集。 创建并返回包括当前范围和给定下限和上限的并集。
...@@ -1287,7 +1287,7 @@ expand(lowerObj:ScopeType,upperObj:ScopeType):Scope ...@@ -1287,7 +1287,7 @@ expand(lowerObj:ScopeType,upperObj:ScopeType):Scope
### expand<sup>8+</sup> ### expand<sup>8+</sup>
expand(range:Scope):Scope expand(range: Scope): Scope
创建并返回包括当前范围和给定范围的并集。 创建并返回包括当前范围和给定范围的并集。
...@@ -1317,7 +1317,7 @@ expand(range:Scope):Scope ...@@ -1317,7 +1317,7 @@ expand(range:Scope):Scope
### expand<sup>8+</sup> ### expand<sup>8+</sup>
expand(value:ScopeType):Scope expand(value: ScopeType): Scope
创建并返回包括当前范围和给定值的并集。 创建并返回包括当前范围和给定值的并集。
...@@ -1345,7 +1345,7 @@ expand(value:ScopeType):Scope ...@@ -1345,7 +1345,7 @@ expand(value:ScopeType):Scope
### contains<sup>8+</sup> ### contains<sup>8+</sup>
contains(value:ScopeType):boolean contains(value: ScopeType): boolean
检查给定value是否包含在当前范围内。 检查给定value是否包含在当前范围内。
...@@ -1373,7 +1373,7 @@ contains(value:ScopeType):boolean ...@@ -1373,7 +1373,7 @@ contains(value:ScopeType):boolean
### contains<sup>8+</sup> ### contains<sup>8+</sup>
contains(range:Scope):boolean contains(range: Scope): boolean
检查给定range是否在当前范围内。 检查给定range是否在当前范围内。
...@@ -1403,7 +1403,7 @@ contains(range:Scope):boolean ...@@ -1403,7 +1403,7 @@ contains(range:Scope):boolean
### clamp<sup>8+</sup> ### clamp<sup>8+</sup>
clamp(value:ScopeType):ScopeType clamp(value: ScopeType): ScopeType
将给定值限定到当前范围内。 将给定值限定到当前范围内。
...@@ -1448,7 +1448,7 @@ Base64的构造函数。 ...@@ -1448,7 +1448,7 @@ Base64的构造函数。
### encodeSync<sup>8+</sup> ### encodeSync<sup>8+</sup>
encodeSync(src:Uint8Array):Uint8Array encodeSync(src: Uint8Array): Uint8Array
通过输入参数编码后输出对应文本。 通过输入参数编码后输出对应文本。
...@@ -1474,7 +1474,7 @@ encodeSync(src:Uint8Array):Uint8Array ...@@ -1474,7 +1474,7 @@ encodeSync(src:Uint8Array):Uint8Array
### encodeToStringSync<sup>8+</sup> ### encodeToStringSync<sup>8+</sup>
encodeToStringSync(src:Uint8Array):string encodeToStringSync(src: Uint8Array): string
通过输入参数编码后输出对应文本。 通过输入参数编码后输出对应文本。
...@@ -1500,7 +1500,7 @@ encodeToStringSync(src:Uint8Array):string ...@@ -1500,7 +1500,7 @@ encodeToStringSync(src:Uint8Array):string
### decodeSync<sup>8+</sup> ### decodeSync<sup>8+</sup>
decodeSync(src:Uint8Array | string):Uint8Array decodeSync(src: Uint8Array | string): Uint8Array
通过输入参数解码后输出对应文本。 通过输入参数解码后输出对应文本。
...@@ -1526,7 +1526,7 @@ decodeSync(src:Uint8Array | string):Uint8Array ...@@ -1526,7 +1526,7 @@ decodeSync(src:Uint8Array | string):Uint8Array
### encode<sup>8+</sup> ### encode<sup>8+</sup>
encode(src:Uint8Array):Promise&lt;Uint8Array&gt; encode(src: Uint8Array): Promise&lt;Uint8Array&gt;
通过输入参数异步编码后输出对应文本。 通过输入参数异步编码后输出对应文本。
...@@ -1557,7 +1557,7 @@ encode(src:Uint8Array):Promise&lt;Uint8Array&gt; ...@@ -1557,7 +1557,7 @@ encode(src:Uint8Array):Promise&lt;Uint8Array&gt;
### encodeToString<sup>8+</sup> ### encodeToString<sup>8+</sup>
encodeToString(src:Uint8Array):Promise&lt;string&gt; encodeToString(src: Uint8Array): Promise&lt;string&gt;
通过输入参数异步编码后输出对应文本。 通过输入参数异步编码后输出对应文本。
...@@ -1585,7 +1585,7 @@ encodeToString(src:Uint8Array):Promise&lt;string&gt; ...@@ -1585,7 +1585,7 @@ encodeToString(src:Uint8Array):Promise&lt;string&gt;
### decode<sup>8+</sup> ### decode<sup>8+</sup>
decode(src:Uint8Array | string):Promise&lt;Uint8Array&gt; decode(src: Uint8Array | string): Promise&lt;Uint8Array&gt;
通过输入参数异步解码后输出对应文本。 通过输入参数异步解码后输出对应文本。
...@@ -1633,7 +1633,7 @@ Types的构造函数。 ...@@ -1633,7 +1633,7 @@ Types的构造函数。
### isAnyArrayBuffer<sup>8+</sup> ### isAnyArrayBuffer<sup>8+</sup>
isAnyArrayBuffer(value: Object):boolean isAnyArrayBuffer(value: Object): boolean
检查输入的value是否是ArrayBuffer类型。 检查输入的value是否是ArrayBuffer类型。
...@@ -1658,7 +1658,7 @@ isAnyArrayBuffer(value: Object):boolean ...@@ -1658,7 +1658,7 @@ isAnyArrayBuffer(value: Object):boolean
### isArrayBufferView<sup>8+</sup> ### isArrayBufferView<sup>8+</sup>
isArrayBufferView(value: Object):boolean isArrayBufferView(value: Object): boolean
检查输入的value是否是内置ArrayBufferView辅助类型。 检查输入的value是否是内置ArrayBufferView辅助类型。
...@@ -1685,7 +1685,7 @@ ArrayBufferView辅助类型包括:Int8Array、Int16Array、Int32Array、Uint8A ...@@ -1685,7 +1685,7 @@ ArrayBufferView辅助类型包括:Int8Array、Int16Array、Int32Array、Uint8A
### isArgumentsObject<sup>8+</sup> ### isArgumentsObject<sup>8+</sup>
isArgumentsObject(value: Object):boolean isArgumentsObject(value: Object): boolean
检查输入的value是否是一个arguments对象类型。 检查输入的value是否是一个arguments对象类型。
...@@ -1713,7 +1713,7 @@ isArgumentsObject(value: Object):boolean ...@@ -1713,7 +1713,7 @@ isArgumentsObject(value: Object):boolean
### isArrayBuffer<sup>8+</sup> ### isArrayBuffer<sup>8+</sup>
isArrayBuffer(value: Object):boolean isArrayBuffer(value: Object): boolean
检查输入的value是否是ArrayBuffer类型。 检查输入的value是否是ArrayBuffer类型。
...@@ -1738,7 +1738,7 @@ isArrayBuffer(value: Object):boolean ...@@ -1738,7 +1738,7 @@ isArrayBuffer(value: Object):boolean
### isAsyncFunction<sup>8+</sup> ### isAsyncFunction<sup>8+</sup>
isAsyncFunction(value: Object):boolean isAsyncFunction(value: Object): boolean
检查输入的value是否是一个异步函数类型。 检查输入的value是否是一个异步函数类型。
...@@ -1763,7 +1763,7 @@ isAsyncFunction(value: Object):boolean ...@@ -1763,7 +1763,7 @@ isAsyncFunction(value: Object):boolean
### isBooleanObject<sup>8+</sup> ### isBooleanObject<sup>8+</sup>
isBooleanObject(value: Object):boolean isBooleanObject(value: Object): boolean
检查输入的value是否是一个Boolean对象类型。 检查输入的value是否是一个Boolean对象类型。
...@@ -1788,7 +1788,7 @@ isBooleanObject(value: Object):boolean ...@@ -1788,7 +1788,7 @@ isBooleanObject(value: Object):boolean
### isBoxedPrimitive<sup>8+</sup> ### isBoxedPrimitive<sup>8+</sup>
isBoxedPrimitive(value: Object):boolean isBoxedPrimitive(value: Object): boolean
检查输入的value是否是Boolean或Number或String或Symbol对象类型。 检查输入的value是否是Boolean或Number或String或Symbol对象类型。
...@@ -1813,7 +1813,7 @@ isBoxedPrimitive(value: Object):boolean ...@@ -1813,7 +1813,7 @@ isBoxedPrimitive(value: Object):boolean
### isDataView<sup>8+</sup> ### isDataView<sup>8+</sup>
isDataView(value: Object):boolean isDataView(value: Object): boolean
检查输入的value是否是DataView类型。 检查输入的value是否是DataView类型。
...@@ -1839,7 +1839,7 @@ isDataView(value: Object):boolean ...@@ -1839,7 +1839,7 @@ isDataView(value: Object):boolean
### isDate<sup>8+</sup> ### isDate<sup>8+</sup>
isDate(value: Object):boolean isDate(value: Object): boolean
检查输入的value是否是Date类型。 检查输入的value是否是Date类型。
...@@ -1864,7 +1864,7 @@ isDate(value: Object):boolean ...@@ -1864,7 +1864,7 @@ isDate(value: Object):boolean
### isExternal<sup>8+</sup> ### isExternal<sup>8+</sup>
isExternal(value: Object):boolean isExternal(value: Object): boolean
检查输入的value是否是native External类型。 检查输入的value是否是native External类型。
...@@ -1890,7 +1890,7 @@ isExternal(value: Object):boolean ...@@ -1890,7 +1890,7 @@ isExternal(value: Object):boolean
### isFloat32Array<sup>8+</sup> ### isFloat32Array<sup>8+</sup>
isFloat32Array(value: Object):boolean isFloat32Array(value: Object): boolean
检查输入的value是否是Float32Array数组类型。 检查输入的value是否是Float32Array数组类型。
...@@ -1915,7 +1915,7 @@ isFloat32Array(value: Object):boolean ...@@ -1915,7 +1915,7 @@ isFloat32Array(value: Object):boolean
### isFloat64Array<sup>8+</sup> ### isFloat64Array<sup>8+</sup>
isFloat64Array(value: Object):boolean isFloat64Array(value: Object): boolean
检查输入的value是否是Float64Array数组类型。 检查输入的value是否是Float64Array数组类型。
...@@ -1940,7 +1940,7 @@ isFloat64Array(value: Object):boolean ...@@ -1940,7 +1940,7 @@ isFloat64Array(value: Object):boolean
### isGeneratorFunction<sup>8+</sup> ### isGeneratorFunction<sup>8+</sup>
isGeneratorFunction(value: Object):boolean isGeneratorFunction(value: Object): boolean
检查输入的value是否是generator函数类型。 检查输入的value是否是generator函数类型。
...@@ -1965,7 +1965,7 @@ isGeneratorFunction(value: Object):boolean ...@@ -1965,7 +1965,7 @@ isGeneratorFunction(value: Object):boolean
### isGeneratorObject<sup>8+</sup> ### isGeneratorObject<sup>8+</sup>
isGeneratorObject(value: Object):boolean isGeneratorObject(value: Object): boolean
检查输入的value是否是generator对象类型。 检查输入的value是否是generator对象类型。
...@@ -1992,7 +1992,7 @@ isGeneratorObject(value: Object):boolean ...@@ -1992,7 +1992,7 @@ isGeneratorObject(value: Object):boolean
### isInt8Array<sup>8+</sup> ### isInt8Array<sup>8+</sup>
isInt8Array(value: Object):boolean isInt8Array(value: Object): boolean
检查输入的value是否是Int8Array数组类型。 检查输入的value是否是Int8Array数组类型。
...@@ -2017,7 +2017,7 @@ isInt8Array(value: Object):boolean ...@@ -2017,7 +2017,7 @@ isInt8Array(value: Object):boolean
### isInt16Array<sup>8+</sup> ### isInt16Array<sup>8+</sup>
isInt16Array(value: Object):boolean isInt16Array(value: Object): boolean
检查输入的value是否是Int16Array数组类型。 检查输入的value是否是Int16Array数组类型。
...@@ -2042,7 +2042,7 @@ isInt16Array(value: Object):boolean ...@@ -2042,7 +2042,7 @@ isInt16Array(value: Object):boolean
### isInt32Array<sup>8+</sup> ### isInt32Array<sup>8+</sup>
isInt32Array(value: Object):boolean isInt32Array(value: Object): boolean
检查输入的value是否是Int32Array数组类型。 检查输入的value是否是Int32Array数组类型。
...@@ -2067,7 +2067,7 @@ isInt32Array(value: Object):boolean ...@@ -2067,7 +2067,7 @@ isInt32Array(value: Object):boolean
### isMap<sup>8+</sup> ### isMap<sup>8+</sup>
isMap(value: Object):boolean isMap(value: Object): boolean
检查输入的value是否是Map类型。 检查输入的value是否是Map类型。
...@@ -2092,7 +2092,7 @@ isMap(value: Object):boolean ...@@ -2092,7 +2092,7 @@ isMap(value: Object):boolean
### isMapIterator<sup>8+</sup> ### isMapIterator<sup>8+</sup>
isMapIterator(value: Object):boolean isMapIterator(value: Object): boolean
检查输入的value是否是Map的Iterator类型。 检查输入的value是否是Map的Iterator类型。
...@@ -2118,7 +2118,7 @@ isMapIterator(value: Object):boolean ...@@ -2118,7 +2118,7 @@ isMapIterator(value: Object):boolean
### isNativeError<sup>8+</sup> ### isNativeError<sup>8+</sup>
isNativeError(value: Object):boolean isNativeError(value: Object): boolean
检查输入的value是否是Error类型。 检查输入的value是否是Error类型。
...@@ -2143,7 +2143,7 @@ isNativeError(value: Object):boolean ...@@ -2143,7 +2143,7 @@ isNativeError(value: Object):boolean
### isNumberObject<sup>8+</sup> ### isNumberObject<sup>8+</sup>
isNumberObject(value: Object):boolean isNumberObject(value: Object): boolean
检查输入的value是否是Number对象类型。 检查输入的value是否是Number对象类型。
...@@ -2168,7 +2168,7 @@ isNumberObject(value: Object):boolean ...@@ -2168,7 +2168,7 @@ isNumberObject(value: Object):boolean
### isPromise<sup>8+</sup> ### isPromise<sup>8+</sup>
isPromise(value: Object):boolean isPromise(value: Object): boolean
检查输入的value是否是Promise类型。 检查输入的value是否是Promise类型。
...@@ -2193,7 +2193,7 @@ isPromise(value: Object):boolean ...@@ -2193,7 +2193,7 @@ isPromise(value: Object):boolean
### isProxy<sup>8+</sup> ### isProxy<sup>8+</sup>
isProxy(value: Object):boolean isProxy(value: Object): boolean
检查输入的value是否是Proxy类型。 检查输入的value是否是Proxy类型。
...@@ -2220,7 +2220,7 @@ isProxy(value: Object):boolean ...@@ -2220,7 +2220,7 @@ isProxy(value: Object):boolean
### isRegExp<sup>8+</sup> ### isRegExp<sup>8+</sup>
isRegExp(value: Object):boolean isRegExp(value: Object): boolean
检查输入的value是否是RegExp类型。 检查输入的value是否是RegExp类型。
...@@ -2245,7 +2245,7 @@ isRegExp(value: Object):boolean ...@@ -2245,7 +2245,7 @@ isRegExp(value: Object):boolean
### isSet<sup>8+</sup> ### isSet<sup>8+</sup>
isSet(value: Object):boolean isSet(value: Object): boolean
检查输入的value是否是Set类型。 检查输入的value是否是Set类型。
...@@ -2270,7 +2270,7 @@ isSet(value: Object):boolean ...@@ -2270,7 +2270,7 @@ isSet(value: Object):boolean
### isSetIterator<sup>8+</sup> ### isSetIterator<sup>8+</sup>
isSetIterator(value: Object):boolean isSetIterator(value: Object): boolean
检查输入的value是否是Set的Iterator类型。 检查输入的value是否是Set的Iterator类型。
...@@ -2296,7 +2296,7 @@ isSetIterator(value: Object):boolean ...@@ -2296,7 +2296,7 @@ isSetIterator(value: Object):boolean
### isStringObject<sup>8+</sup> ### isStringObject<sup>8+</sup>
isStringObject(value: Object):boolean isStringObject(value: Object): boolean
检查输入的value是否是String对象类型。 检查输入的value是否是String对象类型。
...@@ -2347,7 +2347,7 @@ isSymbolObjec(value: Object): boolean ...@@ -2347,7 +2347,7 @@ isSymbolObjec(value: Object): boolean
### isTypedArray<sup>8+</sup> ### isTypedArray<sup>8+</sup>
isTypedArray(value: Object):boolean isTypedArray(value: Object): boolean
检查输入的value是否是TypedArray类型的辅助类型。 检查输入的value是否是TypedArray类型的辅助类型。
...@@ -2374,7 +2374,7 @@ TypedArray类型的辅助类型,包括Int8Array、Int16Array、Int32Array、Ui ...@@ -2374,7 +2374,7 @@ TypedArray类型的辅助类型,包括Int8Array、Int16Array、Int32Array、Ui
### isUint8Array<sup>8+</sup> ### isUint8Array<sup>8+</sup>
isUint8Array(value: Object):boolean isUint8Array(value: Object): boolean
检查输入的value是否是Uint8Array数组类型。 检查输入的value是否是Uint8Array数组类型。
...@@ -2399,7 +2399,7 @@ isUint8Array(value: Object):boolean ...@@ -2399,7 +2399,7 @@ isUint8Array(value: Object):boolean
### isUint8ClampedArray<sup>8+</sup> ### isUint8ClampedArray<sup>8+</sup>
isUint8ClampedArray(value: Object):boolean isUint8ClampedArray(value: Object): boolean
检查输入的value是否是Uint8ClampedArray数组类型。 检查输入的value是否是Uint8ClampedArray数组类型。
...@@ -2424,7 +2424,7 @@ isUint8ClampedArray(value: Object):boolean ...@@ -2424,7 +2424,7 @@ isUint8ClampedArray(value: Object):boolean
### isUint16Array<sup>8+</sup> ### isUint16Array<sup>8+</sup>
isUint16Array(value: Object):boolean isUint16Array(value: Object): boolean
检查输入的value是否是Uint16Array数组类型。 检查输入的value是否是Uint16Array数组类型。
...@@ -2449,7 +2449,7 @@ isUint16Array(value: Object):boolean ...@@ -2449,7 +2449,7 @@ isUint16Array(value: Object):boolean
### isUint32Array<sup>8+</sup> ### isUint32Array<sup>8+</sup>
isUint32Array(value: Object):boolean isUint32Array(value: Object): boolean
检查输入的value是否是Uint32Array数组类型。 检查输入的value是否是Uint32Array数组类型。
...@@ -2474,7 +2474,7 @@ isUint32Array(value: Object):boolean ...@@ -2474,7 +2474,7 @@ isUint32Array(value: Object):boolean
### isWeakMap<sup>8+</sup> ### isWeakMap<sup>8+</sup>
isWeakMap(value: Object):boolean isWeakMap(value: Object): boolean
检查输入的value是否是WeakMap类型。 检查输入的value是否是WeakMap类型。
...@@ -2499,7 +2499,7 @@ isWeakMap(value: Object):boolean ...@@ -2499,7 +2499,7 @@ isWeakMap(value: Object):boolean
### isWeakSet<sup>8+</sup> ### isWeakSet<sup>8+</sup>
isWeakSet(value: Object):boolean isWeakSet(value: Object): boolean
检查输入的value是否是WeakSet类型。 检查输入的value是否是WeakSet类型。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册