diff --git a/en/application-dev/reference/apis/js-apis-process.md b/en/application-dev/reference/apis/js-apis-process.md
old mode 100644
new mode 100755
index 01308446e852763d8d4846fb6d9e6d12ea42a69a..7edbfd41dd53f609bfb3062ead40ba85fdbe0008
--- a/en/application-dev/reference/apis/js-apis-process.md
+++ b/en/application-dev/reference/apis/js-apis-process.md
@@ -114,7 +114,7 @@ child.getErrorOutput.then(val=>{
### close
-close(): void
+close(): void
Closes the child process in running.
@@ -167,7 +167,7 @@ var result = process.isIsolatedProcess();
## process.isAppUid8+
-isAppUid(v:number): boolean
+isAppUid(v: number): boolean
Checks whether a UID belongs to this app.
@@ -211,7 +211,7 @@ var ressult = process.is64Bit();
## process.getUidForName8+
-getUidForName(v:string): number
+getUidForName(v: string): number
Obtains the process UID based on the process name.
@@ -236,7 +236,7 @@ var pres = process.getUidForName("tool")
## process.getThreadPriority8+
-getThreadPriority(v:number): number
+getThreadPriority(v: number): number
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
var realtime = process.getStartRealtime();
```
-## process.getPastCputime8+
+## process.getPastCpuTime8+
-getPastCputime(): number
+getPastCpuTime(): number
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
**Example**
```
-var result = process.getPastCputime() ;
+var result = process.getPastCpuTime() ;
```
## process.getSystemConfig8+
-getSystemConfig(name:number): number
+getSystemConfig(name: number): number
Obtains the system configuration.
@@ -325,7 +325,7 @@ var pres = process.getSystemConfig(_SC_ARG_MAX)
## process.getEnvironmentVar8+
-getEnvironmentVar(name:string): string
+getEnvironmentVar(name: string): string
Obtains the value of an environment variable.
@@ -416,7 +416,7 @@ Stores the events triggered by the user.
| Name| Description|
| -------- | -------- |
-| EventListener = (evt: Object) => void | Event to store.|
+| EventListener = (evt: Object) => void | Event to store.|
**Example**
@@ -527,7 +527,7 @@ var time = process.uptime();
## process.kill
-kill(pid: number, signal: number): boolean
+kill(pid: number, signal: number ): boolean
Sends a signal to the specified process to terminate it.
diff --git a/en/application-dev/reference/apis/js-apis-util.md b/en/application-dev/reference/apis/js-apis-util.md
old mode 100644
new mode 100755
index 6f2e389b4d20da87ddc6fde5613c8ab98f5aa72f..f1a9eb0b869a9d95da5dea30f93e64bbaf891a13
--- a/en/application-dev/reference/apis/js-apis-util.md
+++ b/en/application-dev/reference/apis/js-apis-util.md
@@ -147,7 +147,7 @@ Processes an asynchronous function and returns a promise version.
### 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.
@@ -168,13 +168,13 @@ A constructor used to create a **TextDecoder** object.
**Example**
```
- var textDecoder = new util.TextDecoder("utf-8",{ignoreBOM:true});
+ var textDecoder = new util.TextDecoder("utf-8",{ignoreBOM: true});
```
### decode
-decode(input: Unit8Array, options?:{stream?:false}): string
+decode(input: Unit8Array, options?: {stream?: false}): string
Decodes the input content.
@@ -199,7 +199,7 @@ Decodes the input content.
**Example**
```
- var textDecoder = new util.TextDecoder("utf-8",{ignoreBOM:true});
+ var textDecoder = new util.TextDecoder("utf-8",{ignoreBOM: true});
var result = new Uint8Array(6);
result[0] = 0xEF;
result[1] = 0xBB;
@@ -211,7 +211,7 @@ Decodes the input content.
for(var j= 0; j < 6; j++) {
console.log(result[j]);
}
- var retStr = textDecoder.decode( result , {stream:false});
+ var retStr = textDecoder.decode( result , {stream: false});
console.log("retStr = " + retStr);
```
@@ -243,7 +243,7 @@ A constructor used to create a **TextEncoder** object.
### encode
-encode(input?:string):Uint8Array
+encode(input?: string): Uint8Array
Encodes the input content.
@@ -269,7 +269,7 @@ Encodes the input content.
### 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.
@@ -299,7 +299,7 @@ Stores the UTF-8 encoded text.
### constructor8+
-constructor(numerator:number,denominator:number)
+constructor(numerator: number,denominator: number)
A constructor used to create a **RationalNumber** object.
@@ -319,7 +319,7 @@ A constructor used to create a **RationalNumber** object.
### createRationalFromString8+
-static createRationalFromString(rationalString:string):RationalNumber
+static createRationalFromString(rationalString: string): RationalNumber
Creates a **RationalNumber** object based on the given string.
@@ -344,7 +344,7 @@ Creates a **RationalNumber** object based on the given string.
### compareTo8+
-compareTo(another:RationalNumber):number
+compareTo(another: RationalNumber): number
Compares this **RationalNumber** object with a given object.
@@ -370,7 +370,7 @@ Compares this **RationalNumber** object with a given object.
### valueOf8+
-valueOf():number
+valueOf(): 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-
### equals8+
-equals(obj:Object):boolean
+equals(obj: Object): boolean
Checks whether this **RationalNumber** object equals the given object.
@@ -416,7 +416,7 @@ Checks whether this **RationalNumber** object equals the given object.
### getCommonDivisor8+
-static getCommonDivisor(number1:number,number2:number):number
+static getCommonDivisor(number1: number,number2: number): number
Obtains the greatest common divisor of two specified integers.
@@ -442,7 +442,7 @@ Obtains the greatest common divisor of two specified integers.
### getNumerator8+
-getNumerator():number
+getNumerator(): number
Obtains the numerator of this **RationalNumber** object.
@@ -463,7 +463,7 @@ Obtains the numerator of this **RationalNumber** object.
### getDenominator8+
-getDenominator():number
+getDenominator(): number
Obtains the denominator of this **RationalNumber** object.
@@ -483,7 +483,7 @@ Obtains the denominator of this **RationalNumber** object.
### isZero8+
-isZero():boolean
+isZero(): boolean
Checks whether this **RationalNumber** object is **0**.
@@ -503,7 +503,7 @@ Checks whether this **RationalNumber** object is **0**.
### isNaN8+
-isNaN():boolean
+isNaN(): boolean
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).
### isFinite8+
-isFinite():boolean
+isFinite(): boolean
Checks whether this **RationalNumber** object represents a finite value.
@@ -543,7 +543,7 @@ Checks whether this **RationalNumber** object represents a finite value.
### toString8+
-toString():string
+toString(): string
Obtains the string representation of this **RationalNumber** object.
@@ -581,7 +581,7 @@ Obtains the string representation of this **RationalNumber** object.
### constructor8+
-constructor(capacity?:number)
+constructor(capacity?: number)
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
### updateCapacity8+
-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.
@@ -620,7 +620,7 @@ Changes the **LruBuffer** capacity. If the new capacity is less than or equal to
### toString8+
-toString():string
+toString(): string
Obtains the string representation of this **LruBuffer** object.
@@ -643,7 +643,7 @@ Obtains the string representation of this **LruBuffer** object.
### getCapacity8+
-getCapacity():number
+getCapacity(): number
Obtains the capacity of this buffer.
@@ -663,7 +663,7 @@ Obtains the capacity of this buffer.
### clear8+
-clear():void
+clear(): void
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
### getCreateCount8+
-getCreateCount():number
+getCreateCount(): number
Obtains the number of return values for **createDefault()**.
@@ -701,7 +701,7 @@ Obtains the number of return values for **createDefault()**.
### getMissCount8+
-getMissCount():number
+getMissCount(): number
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.
### getRemovalCount8+
-getRemovalCount():number
+getRemovalCount(): number
Obtains the number of removals from this buffer.
@@ -746,7 +746,7 @@ Obtains the number of removals from this buffer.
### getMatchCount8+
-getMatchCount():number
+getMatchCount(): number
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.
### getPutCount8+
-getPutCount():number
+getPutCount(): number
Obtains the number of additions to this buffer.
@@ -789,7 +789,7 @@ Obtains the number of additions to this buffer.
### isEmpty8+
-isEmpty():boolean
+isEmpty(): boolean
Checks whether this buffer is empty.
@@ -810,7 +810,7 @@ Checks whether this buffer is empty.
### get8+
-get(key:K):V | undefined
+get(key: K): V | undefined
Obtains the value of the specified key.
@@ -836,7 +836,7 @@ Obtains the value of the specified key.
### put8+
-put(key:K,value:V):V
+put(key: K,value: V): V
Adds a key-value pair to this buffer.
@@ -862,7 +862,7 @@ Adds a key-value pair to this buffer.
### values8+
-values():V[]
+values(): V[]
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
### keys8+
-keys():K[]
+keys(): K[]
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
### remove8+
-remove(key:K):V | undefined
+remove(key: K): V | undefined
Removes the specified key and its value from this buffer.
@@ -932,7 +932,7 @@ Removes the specified key and its value from this buffer.
### afterRemoval8+
-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.
@@ -977,7 +977,7 @@ Performs subsequent operations after a value is removed.
### contains8+
-contains(key:K):boolean
+contains(key: K): boolean
Checks whether this buffer contains the specified key.
@@ -1003,7 +1003,7 @@ Checks whether this buffer contains the specified key.
### createDefault8+
-createDefault(key:K):V
+createDefault(key: K): V
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.
### entries8+
-entries():IterableIterator<[K,V]>
+entries(): IterableIterator<[K,V]>
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
The values of the **ScopeComparable** type are used to implement the **compareTo** method. Therefore, ensure that the input parameters are comparable.
```
interface ScopeComparable{
- compareTo(other:ScopeComparable):boolean;
+ compareTo(other: ScopeComparable): boolean;
}
type ScopeType = ScopeComparable | number;
```
@@ -1108,7 +1108,7 @@ class Temperature{
### constructor8+
-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.
@@ -1130,7 +1130,7 @@ A constructor used to create a **Scope** object with the specified upper and low
### toString8+
-toString():string
+toString(): string
Obtains a string representation that contains this **Scope**.
@@ -1152,7 +1152,7 @@ Obtains a string representation that contains this **Scope**.
### intersect8+
-intersect(range:Scope):Scope
+intersect(range: Scope): 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**.
### intersect8+
-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.
@@ -1212,7 +1212,7 @@ Obtains the intersection of this **Scope** and the given lower and upper limits.
### getUpper8+
-getUpper():ScopeType
+getUpper(): ScopeType
Obtains the upper limit of this **Scope**.
@@ -1235,7 +1235,7 @@ Obtains the upper limit of this **Scope**.
### getLower8+
-getLower():ScopeType
+getLower(): ScopeType
Obtains the lower limit of this **Scope**.
@@ -1257,7 +1257,7 @@ Obtains the lower limit of this **Scope**.
### expand8+
-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.
@@ -1317,7 +1317,7 @@ Obtains the union set of this **Scope** and the given **Scope**.
### expand8+
-expand(value:ScopeType):Scope
+expand(value: ScopeType): Scope
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.
### contains8+
-contains(value:ScopeType):boolean
+contains(value: ScopeType): boolean
Checks whether a value is within this **Scope**.
@@ -1373,7 +1373,7 @@ Checks whether a value is within this **Scope**.
### contains8+
-contains(range:Scope):boolean
+contains(range: Scope): boolean
Checks whether a range is within this **Scope**.
@@ -1403,7 +1403,7 @@ Checks whether a range is within this **Scope**.
### clamp8+
-clamp(value:ScopeType):ScopeType
+clamp(value: ScopeType): ScopeType
Limits a value to this **Scope**.
@@ -1448,7 +1448,7 @@ A constructor used to create a **Base64** object.
### encodeSync8+
-encodeSync(src:Uint8Array):Uint8Array
+encodeSync(src: Uint8Array): Uint8Array
Encodes the input content.
@@ -1474,7 +1474,7 @@ Encodes the input content.
### encodeToStringSync8+
-encodeToStringSync(src:Uint8Array):string
+encodeToStringSync(src: Uint8Array): string
Encodes the input content.
@@ -1500,7 +1500,7 @@ Encodes the input content.
### decodeSync8+
-decodeSync(src:Uint8Array | string):Uint8Array
+decodeSync(src: Uint8Array | string): Uint8Array
Decodes the input content.
@@ -1526,7 +1526,7 @@ Decodes the input content.
### encode8+
-encode(src:Uint8Array):Promise<Uint8Array>
+encode(src: Uint8Array): Promise<Uint8Array>
Encodes the input content asynchronously.
@@ -1557,7 +1557,7 @@ Encodes the input content asynchronously.
### encodeToString8+
-encodeToString(src:Uint8Array):Promise<string>
+encodeToString(src: Uint8Array): Promise<string>
Encodes the input content asynchronously.
@@ -1585,7 +1585,7 @@ Encodes the input content asynchronously.
### decode8+
-decode(src:Uint8Array | string):Promise<Uint8Array>
+decode(src: Uint8Array | string): Promise<Uint8Array>
Decodes the input content asynchronously.
@@ -1633,7 +1633,7 @@ A constructor used to create a **Types** object.
### isAnyArrayBuffer8+
-isAnyArrayBuffer(value: Object):boolean
+isAnyArrayBuffer(value: Object): boolean
Checks whether the input value is of the **ArrayBuffer** type.
@@ -1658,7 +1658,7 @@ Checks whether the input value is of the **ArrayBuffer** type.
### isArrayBufferView8+
-isArrayBufferView(value: Object):boolean
+isArrayBufferView(value: Object): boolean
Checks whether the input value is of the **ArrayBufferView** type.
@@ -1685,7 +1685,7 @@ Checks whether the input value is of the **ArrayBufferView** type.
### isArgumentsObject8+
-isArgumentsObject(value: Object):boolean
+isArgumentsObject(value: Object): boolean
Checks whether the input value is of the **arguments** type.
@@ -1713,7 +1713,7 @@ Checks whether the input value is of the **arguments** type.
### isArrayBuffer8+
-isArrayBuffer(value: Object):boolean
+isArrayBuffer(value: Object): boolean
Checks whether the input value is of the **ArrayBuffer** type.
@@ -1738,7 +1738,7 @@ Checks whether the input value is of the **ArrayBuffer** type.
### isAsyncFunction8+
-isAsyncFunction(value: Object):boolean
+isAsyncFunction(value: Object): boolean
Checks whether the input value is an asynchronous function.
@@ -1763,7 +1763,7 @@ Checks whether the input value is an asynchronous function.
### isBooleanObject8+
-isBooleanObject(value: Object):boolean
+isBooleanObject(value: Object): boolean
Checks whether the input value is of the **Boolean** type.
@@ -1788,7 +1788,7 @@ Checks whether the input value is of the **Boolean** type.
### isBoxedPrimitive8+
-isBoxedPrimitive(value: Object):boolean
+isBoxedPrimitive(value: Object): boolean
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
### isDataView8+
-isDataView(value: Object):boolean
+isDataView(value: Object): boolean
Checks whether the input value is of the **DataView** type.
@@ -1839,7 +1839,7 @@ Checks whether the input value is of the **DataView** type.
### isDate8+
-isDate(value: Object):boolean
+isDate(value: Object): boolean
Checks whether the input value is of the **Date** type.
@@ -1864,7 +1864,7 @@ Checks whether the input value is of the **Date** type.
### isExternal8+
-isExternal(value: Object):boolean
+isExternal(value: Object): boolean
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.
### isFloat32Array8+
-isFloat32Array(value: Object):boolean
+isFloat32Array(value: Object): boolean
Checks whether the input value is of the **Float32Array** type.
@@ -1915,7 +1915,7 @@ Checks whether the input value is of the **Float32Array** type.
### isFloat64Array8+
-isFloat64Array(value: Object):boolean
+isFloat64Array(value: Object): boolean
Checks whether the input value is of the **Float64Array** type.
@@ -1940,7 +1940,7 @@ Checks whether the input value is of the **Float64Array** type.
### isGeneratorFunction8+
-isGeneratorFunction(value: Object):boolean
+isGeneratorFunction(value: Object): boolean
Checks whether the input value is a generator function.
@@ -1965,7 +1965,7 @@ Checks whether the input value is a generator function.
### isGeneratorObject8+
-isGeneratorObject(value: Object):boolean
+isGeneratorObject(value: Object): boolean
Checks whether the input value is a generator object.
@@ -1992,7 +1992,7 @@ Checks whether the input value is a generator object.
### isInt8Array8+
-isInt8Array(value: Object):boolean
+isInt8Array(value: Object): boolean
Checks whether the input value is of the **Int8Array** type.
@@ -2017,7 +2017,7 @@ Checks whether the input value is of the **Int8Array** type.
### isInt16Array8+
-isInt16Array(value: Object):boolean
+isInt16Array(value: Object): boolean
Checks whether the input value is of the **Int16Array** type.
@@ -2042,7 +2042,7 @@ Checks whether the input value is of the **Int16Array** type.
### isInt32Array8+
-isInt32Array(value: Object):boolean
+isInt32Array(value: Object): boolean
Checks whether the input value is of the **Int32Array** type.
@@ -2067,7 +2067,7 @@ Checks whether the input value is of the **Int32Array** type.
### isMap8+
-isMap(value: Object):boolean
+isMap(value: Object): boolean
Checks whether the input value is of the **Map** type.
@@ -2092,7 +2092,7 @@ Checks whether the input value is of the **Map** type.
### isMapIterator8+
-isMapIterator(value: Object):boolean
+isMapIterator(value: Object): boolean
Checks whether the input value is of the **MapIterator** type.
@@ -2118,7 +2118,7 @@ Checks whether the input value is of the **MapIterator** type.
### isNativeError8+
-isNativeError(value: Object):boolean
+isNativeError(value: Object): boolean
Checks whether the input value is of the **Error** type.
@@ -2143,7 +2143,7 @@ Checks whether the input value is of the **Error** type.
### isNumberObject8+
-isNumberObject(value: Object):boolean
+isNumberObject(value: Object): boolean
Checks whether the input value is a number object.
@@ -2168,7 +2168,7 @@ Checks whether the input value is a number object.
### isPromise8+
-isPromise(value: Object):boolean
+isPromise(value: Object): boolean
Checks whether the input value is a promise.
@@ -2193,7 +2193,7 @@ Checks whether the input value is a promise.
### isProxy8+
-isProxy(value: Object):boolean
+isProxy(value: Object): boolean
Checks whether the input value is a proxy.
@@ -2220,7 +2220,7 @@ Checks whether the input value is a proxy.
### isRegExp8+
-isRegExp(value: Object):boolean
+isRegExp(value: Object): boolean
Checks whether the input value is of the **RegExp** type.
@@ -2245,7 +2245,7 @@ Checks whether the input value is of the **RegExp** type.
### isSet8+
-isSet(value: Object):boolean
+isSet(value: Object): boolean
Checks whether the input value is of the **Set** type.
@@ -2270,7 +2270,7 @@ Checks whether the input value is of the **Set** type.
### isSetIterator8+
-isSetIterator(value: Object):boolean
+isSetIterator(value: Object): boolean
Checks whether the input value is of the **SetIterator** type.
@@ -2296,7 +2296,7 @@ Checks whether the input value is of the **SetIterator** type.
### isStringObject8+
-isStringObject(value: Object):boolean
+isStringObject(value: Object): boolean
Checks whether the input value is a string object.
@@ -2347,7 +2347,7 @@ Checks whether the input value is a symbol object.
### isTypedArray8+
-isTypedArray(value: Object):boolean
+isTypedArray(value: Object): boolean
Checks whether the input value is of the **TypedArray** type.
@@ -2374,7 +2374,7 @@ Checks whether the input value is of the **TypedArray** type.
### isUint8Array8+
-isUint8Array(value: Object):boolean
+isUint8Array(value: Object): boolean
Checks whether the input value is of the **Uint8Array** type.
@@ -2399,7 +2399,7 @@ Checks whether the input value is of the **Uint8Array** type.
### isUint8ClampedArray8+
-isUint8ClampedArray(value: Object):boolean
+isUint8ClampedArray(value: Object): boolean
Checks whether the input value is of the **Uint8ClampedArray** type.
@@ -2424,7 +2424,7 @@ Checks whether the input value is of the **Uint8ClampedArray** type.
### isUint16Array8+
-isUint16Array(value: Object):boolean
+isUint16Array(value: Object): boolean
Checks whether the input value is of the **Uint16Array** type.
@@ -2449,7 +2449,7 @@ Checks whether the input value is of the **Uint16Array** type.
### isUint32Array8+
-isUint32Array(value: Object):boolean
+isUint32Array(value: Object): boolean
Checks whether the input value is of the **Uint32Array** type.
@@ -2474,7 +2474,7 @@ Checks whether the input value is of the **Uint32Array** type.
### isWeakMap8+
-isWeakMap(value: Object):boolean
+isWeakMap(value: Object): boolean
Checks whether the input value is of the **WeakMap** type.
@@ -2499,7 +2499,7 @@ Checks whether the input value is of the **WeakMap** type.
### isWeakSet8+
-isWeakSet(value: Object):boolean
+isWeakSet(value: Object): boolean
Checks whether the input value is of the **WeakSet** type.
diff --git a/zh-cn/application-dev/reference/apis/js-apis-process.md b/zh-cn/application-dev/reference/apis/js-apis-process.md
old mode 100644
new mode 100755
index 8de93bbc199062001d8c92e606b0f6497353d738..5b5cd956dc51bf6e9a313008a8349b16d728fc5f
--- a/zh-cn/application-dev/reference/apis/js-apis-process.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-process.md
@@ -121,7 +121,7 @@ child.getErrorOutput.then(val=>{
### close
-close(): void
+close(): void
关闭正在运行的子进程。
@@ -180,7 +180,7 @@ var result = process.isIsolatedProcess();
## process.isAppUid8+
-isAppUid(v:number): boolean
+isAppUid(v: number): boolean
判断uid是否属于应用程序。
@@ -228,7 +228,7 @@ var ressult = process.is64Bit();
## process.getUidForName8+
-getUidForName(v:string): number
+getUidForName(v: string): number
通过进程名获取进程uid。
@@ -255,7 +255,7 @@ var pres = process.getUidForName("tool")
## process.getThreadPriority8+
-getThreadPriority(v:number): number
+getThreadPriority(v: number): number
根据指定的tid获取线程优先级。
@@ -324,7 +324,7 @@ var result = process.getPastCpuTime() ;
## process.getSystemConfig8+
-getSystemConfig(name:number): number
+getSystemConfig(name: number): number
获取系统配置信息。
@@ -352,7 +352,7 @@ var pres = process.getSystemConfig(_SC_ARG_MAX)
## process.getEnvironmentVar8+
-getEnvironmentVar(name:string): string
+getEnvironmentVar(name: string): string
用该方法获取环境变量对应的值。
@@ -451,7 +451,7 @@ on(type: string, listener: EventListener): void
| 名称 | 说明 |
| -------- | -------- |
-| EventListener = (evt: Object) => void | 用户存储的事件。 |
+| EventListener = (evt: Object) => void | 用户存储的事件。 |
**示例:**
diff --git a/zh-cn/application-dev/reference/apis/js-apis-util.md b/zh-cn/application-dev/reference/apis/js-apis-util.md
old mode 100644
new mode 100755
index f3aa4f637a092ae84f4c114a368be2e1a7f5d093..3b675034884feadb4cbe11bf7c3b4db6ead2d499
--- a/zh-cn/application-dev/reference/apis/js-apis-util.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-util.md
@@ -147,7 +147,7 @@ promiseWrapper(original: (err: Object, value: Object) => void): Object
### constructor
-constructor(encoding?:string, options?:{ fatal?:boolean;ignoreBOM?:boolean })
+constructor(encoding?: string, options?: { fatal?: boolean;ignoreBOM?: boolean })
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(input: Unit8Array, options?:{stream?:false}): string
+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);
result[0] = 0xEF;
result[1] = 0xBB;
@@ -211,7 +211,7 @@ decode(input: Unit8Array, options?:{stream?:false}): string
for(var j= 0; j < 6; j++) {
console.log(result[j]);
}
- var retStr = textDecoder.decode( result , {stream:false});
+ var retStr = textDecoder.decode( result , {stream: false});
console.log("retStr = " + retStr);
```
@@ -243,7 +243,7 @@ TextEncoder的构造函数。
### encode
-encode(input?:string):Uint8Array
+encode(input?: string): Uint8Array
通过输入参数编码后输出对应文本。
@@ -269,7 +269,7 @@ encode(input?:string):Uint8Array
### encodeInto
-encodeInto(input:string, dest:Uint8Array, ):{ read:number; written:number }
+encodeInto(input: string, dest: Uint8Array, ): { read: number; written: number }
放置生成的UTF-8编码文本。
@@ -299,7 +299,7 @@ encodeInto(input:string, dest:Uint8Array, ):{ read:number; written:number }
### constructor8+
-constructor(numerator:number,denominator:number)
+constructor(numerator: number,denominator: number)
RationalNumber的构造函数。
@@ -319,7 +319,7 @@ RationalNumber的构造函数。
### createRationalFromString8+
-static createRationalFromString(rationalString:string):RationalNumber
+static createRationalFromString(rationalString: string): RationalNumber
基于给定的字符串创建一个RationalNumber对象。
@@ -344,7 +344,7 @@ static createRationalFromString(rationalString:string):RationalNumber
### compareTo8+
-compareTo(another:RationalNumber):number
+compareTo(another: RationalNumber): number
将当前的RationalNumber对象与给定的对象进行比较。
@@ -370,7 +370,7 @@ compareTo(another:RationalNumber):number
### valueOf8+
-valueOf():number
+valueOf(): number
以整数形式或者浮点数的形式获取当前RationalNumber对象的值。
@@ -390,7 +390,7 @@ valueOf():number
### equals8+
-equals(obj:Object):boolean
+equals(obj: Object): boolean
将当前的RationalNumber对象与给定的对象进行比较是否相等。
@@ -416,7 +416,7 @@ equals(obj:Object):boolean
### getCommonDivisor8+
-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
### getNumerator8+
-getNumerator():number
+getNumerator(): number
获取当前RationalNumber对象的分子。
@@ -463,7 +463,7 @@ getNumerator():number
### getDenominator8+
-getDenominator():number
+getDenominator(): number
获取当前RationalNumber对象的分母。
@@ -503,7 +503,7 @@ isZero():boolean
### isNaN8+
-isNaN():boolean
+isNaN(): boolean
检查当前RationalNumber对象是否表示非数字(NaN)值。
@@ -543,7 +543,7 @@ isFinite():boolean
### toString8+
-toString():string
+toString(): string
获取当前RationalNumber对象的字符串表示形式。
@@ -581,7 +581,7 @@ toString():string
### constructor8+
-constructor(capacity?:number)
+constructor(capacity?: number)
默认构造函数用于创建一个新的LruBuffer实例,默认容量为64。
@@ -600,7 +600,7 @@ constructor(capacity?:number)
### updateCapacity8+
-updateCapacity(newCapacity:number):void
+updateCapacity(newCapacity: number): void
将缓冲区容量更新为指定容量,如果newCapacity小于或等于0,则抛出异常。
@@ -620,7 +620,7 @@ updateCapacity(newCapacity:number):void
### toString8+
-toString():string
+toString(): string
返回对象的字符串表示形式。
@@ -643,7 +643,7 @@ toString():string
### getCapacity8+
-getCapacity():number
+getCapacity(): number
获取当前缓冲区的容量。
@@ -663,7 +663,7 @@ getCapacity():number
### clear8+
-clear():void
+clear(): void
从当前缓冲区清除键值对。后续会调用afterRemoval()方法执行后续操作。
@@ -680,7 +680,7 @@ clear():void
### getCreateCount8+
-getCreateCount():number
+getCreateCount(): number
获取createDefault()返回值的次数。
@@ -701,7 +701,7 @@ getCreateCount():number
### getMissCount8+
-getMissCount():number
+getMissCount(): number
获取查询值不匹配的次数。
@@ -723,7 +723,7 @@ getMissCount():number
### getRemovalCount8+
-getRemovalCount():number
+getRemovalCount(): number
获取从缓冲区中逐出值的次数。
@@ -746,7 +746,7 @@ getRemovalCount():number
### getMatchCount8+
-getMatchCount():number
+getMatchCount(): number
获取查询值匹配成功的次数。
@@ -768,7 +768,7 @@ getMatchCount():number
### getPutCount8+
-getPutCount():number
+getPutCount(): number
获取将值添加到缓冲区的次数。
@@ -789,7 +789,7 @@ getPutCount():number
### isEmpty8+
-isEmpty():boolean
+isEmpty(): boolean
检查当前缓冲区是否为空。
@@ -810,7 +810,7 @@ isEmpty():boolean
### get8+
-get(key:K):V | undefined
+get(key: K): V | undefined
表示要查询的键。
@@ -836,7 +836,7 @@ get(key:K):V | undefined
### put8+
-put(key:K,value:V):V
+put(key: K,value: V): V
将键值对添加到缓冲区。
@@ -862,7 +862,7 @@ put(key:K,value:V):V
### values8+
-values():V[]
+values(): V[]
获取当前缓冲区中所有值从最近访问到最近最少访问的顺序列表 。
@@ -885,7 +885,7 @@ values():V[]
### keys8+
-keys():K[]
+keys(): K[]
获取当前缓冲区中所有键从最近访问到最近最少访问的升序列表。
@@ -906,7 +906,7 @@ keys():K[]
### remove8+
-remove(key:K):V | undefined
+remove(key: K): V | undefined
从当前缓冲区中删除指定的键及其关联的值。
@@ -932,7 +932,7 @@ remove(key:K):V | undefined
### afterRemoval8+
-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
### contains8+
-contains(key:K):boolean
+contains(key: K): boolean
检查当前缓冲区是否包含指定的键。
@@ -1003,7 +1003,7 @@ contains(key:K):boolean
### createDefault8+
-createDefault(key:K):V
+createDefault(key: K): V
如果未计算特定键的值,则执行后续操作,参数表示丢失的键,返回与键关联的值。
@@ -1028,7 +1028,7 @@ createDefault(key:K):V
### entries8+
-entries():IterableIterator<[K,V]>
+entries(): IterableIterator<[K,V]>
允许迭代包含在这个对象中的所有键值对。
@@ -1078,7 +1078,7 @@ entries():IterableIterator<[K,V]>
ScopeComparable类型的值需要实现compareTo方法,确保传入的数据具有可比性。
```
interface ScopeComparable{
- compareTo(other:ScopeComparable):boolean;
+ compareTo(other: ScopeComparable): boolean;
}
type ScopeType = ScopeComparable | number;
```
@@ -1108,7 +1108,7 @@ class Temperature{
### constructor8+
-constructor(lowerObj:ScopeType,upperObje:ScopeType)
+constructor(lowerObj: ScopeType,upperObje: ScopeType)
用于创建指定下限和上限的作用域实例的构造函数,返回一个Scope对象。
@@ -1130,7 +1130,7 @@ constructor(lowerObj:ScopeType,upperObje:ScopeType)
### toString8+
-toString():string
+toString(): string
该字符串化方法返回一个包含当前范围的字符串表示形式。
@@ -1152,7 +1152,7 @@ toString():string
### intersect8+
-intersect(range:Scope):Scope
+intersect(range: Scope): Scope
获取给定范围和当前范围的交集。
@@ -1212,7 +1212,7 @@ intersect(lowerObj:ScopeType,upperObj:ScopeType):Scope
### getUpper8+
-getUpper():ScopeType
+getUpper(): ScopeType
获取当前范围的上限。
@@ -1235,7 +1235,7 @@ getUpper():ScopeType
### getLower8+
-getLower():ScopeType
+getLower(): ScopeType
获取当前范围的下限。
@@ -1257,7 +1257,7 @@ getLower():ScopeType
### expand8+
-expand(lowerObj:ScopeType,upperObj:ScopeType):Scope
+expand(lowerObj: ScopeType,upperObj: ScopeType): Scope
创建并返回包括当前范围和给定下限和上限的并集。
@@ -1287,7 +1287,7 @@ expand(lowerObj:ScopeType,upperObj:ScopeType):Scope
### expand8+
-expand(range:Scope):Scope
+expand(range: Scope): Scope
创建并返回包括当前范围和给定范围的并集。
@@ -1317,7 +1317,7 @@ expand(range:Scope):Scope
### expand8+
-expand(value:ScopeType):Scope
+expand(value: ScopeType): Scope
创建并返回包括当前范围和给定值的并集。
@@ -1345,7 +1345,7 @@ expand(value:ScopeType):Scope
### contains8+
-contains(value:ScopeType):boolean
+contains(value: ScopeType): boolean
检查给定value是否包含在当前范围内。
@@ -1373,7 +1373,7 @@ contains(value:ScopeType):boolean
### contains8+
-contains(range:Scope):boolean
+contains(range: Scope): boolean
检查给定range是否在当前范围内。
@@ -1403,7 +1403,7 @@ contains(range:Scope):boolean
### clamp8+
-clamp(value:ScopeType):ScopeType
+clamp(value: ScopeType): ScopeType
将给定值限定到当前范围内。
@@ -1448,7 +1448,7 @@ Base64的构造函数。
### encodeSync8+
-encodeSync(src:Uint8Array):Uint8Array
+encodeSync(src: Uint8Array): Uint8Array
通过输入参数编码后输出对应文本。
@@ -1474,7 +1474,7 @@ encodeSync(src:Uint8Array):Uint8Array
### encodeToStringSync8+
-encodeToStringSync(src:Uint8Array):string
+encodeToStringSync(src: Uint8Array): string
通过输入参数编码后输出对应文本。
@@ -1500,7 +1500,7 @@ encodeToStringSync(src:Uint8Array):string
### decodeSync8+
-decodeSync(src:Uint8Array | string):Uint8Array
+decodeSync(src: Uint8Array | string): Uint8Array
通过输入参数解码后输出对应文本。
@@ -1526,7 +1526,7 @@ decodeSync(src:Uint8Array | string):Uint8Array
### encode8+
-encode(src:Uint8Array):Promise<Uint8Array>
+encode(src: Uint8Array): Promise<Uint8Array>
通过输入参数异步编码后输出对应文本。
@@ -1557,7 +1557,7 @@ encode(src:Uint8Array):Promise<Uint8Array>
### encodeToString8+
-encodeToString(src:Uint8Array):Promise<string>
+encodeToString(src: Uint8Array): Promise<string>
通过输入参数异步编码后输出对应文本。
@@ -1585,7 +1585,7 @@ encodeToString(src:Uint8Array):Promise<string>
### decode8+
-decode(src:Uint8Array | string):Promise<Uint8Array>
+decode(src: Uint8Array | string): Promise<Uint8Array>
通过输入参数异步解码后输出对应文本。
@@ -1633,7 +1633,7 @@ Types的构造函数。
### isAnyArrayBuffer8+
-isAnyArrayBuffer(value: Object):boolean
+isAnyArrayBuffer(value: Object): boolean
检查输入的value是否是ArrayBuffer类型。
@@ -1658,7 +1658,7 @@ isAnyArrayBuffer(value: Object):boolean
### isArrayBufferView8+
-isArrayBufferView(value: Object):boolean
+isArrayBufferView(value: Object): boolean
检查输入的value是否是内置ArrayBufferView辅助类型。
@@ -1685,7 +1685,7 @@ ArrayBufferView辅助类型包括:Int8Array、Int16Array、Int32Array、Uint8A
### isArgumentsObject8+
-isArgumentsObject(value: Object):boolean
+isArgumentsObject(value: Object): boolean
检查输入的value是否是一个arguments对象类型。
@@ -1713,7 +1713,7 @@ isArgumentsObject(value: Object):boolean
### isArrayBuffer8+
-isArrayBuffer(value: Object):boolean
+isArrayBuffer(value: Object): boolean
检查输入的value是否是ArrayBuffer类型。
@@ -1738,7 +1738,7 @@ isArrayBuffer(value: Object):boolean
### isAsyncFunction8+
-isAsyncFunction(value: Object):boolean
+isAsyncFunction(value: Object): boolean
检查输入的value是否是一个异步函数类型。
@@ -1763,7 +1763,7 @@ isAsyncFunction(value: Object):boolean
### isBooleanObject8+
-isBooleanObject(value: Object):boolean
+isBooleanObject(value: Object): boolean
检查输入的value是否是一个Boolean对象类型。
@@ -1788,7 +1788,7 @@ isBooleanObject(value: Object):boolean
### isBoxedPrimitive8+
-isBoxedPrimitive(value: Object):boolean
+isBoxedPrimitive(value: Object): boolean
检查输入的value是否是Boolean或Number或String或Symbol对象类型。
@@ -1813,7 +1813,7 @@ isBoxedPrimitive(value: Object):boolean
### isDataView8+
-isDataView(value: Object):boolean
+isDataView(value: Object): boolean
检查输入的value是否是DataView类型。
@@ -1839,7 +1839,7 @@ isDataView(value: Object):boolean
### isDate8+
-isDate(value: Object):boolean
+isDate(value: Object): boolean
检查输入的value是否是Date类型。
@@ -1864,7 +1864,7 @@ isDate(value: Object):boolean
### isExternal8+
-isExternal(value: Object):boolean
+isExternal(value: Object): boolean
检查输入的value是否是native External类型。
@@ -1890,7 +1890,7 @@ isExternal(value: Object):boolean
### isFloat32Array8+
-isFloat32Array(value: Object):boolean
+isFloat32Array(value: Object): boolean
检查输入的value是否是Float32Array数组类型。
@@ -1915,7 +1915,7 @@ isFloat32Array(value: Object):boolean
### isFloat64Array8+
-isFloat64Array(value: Object):boolean
+isFloat64Array(value: Object): boolean
检查输入的value是否是Float64Array数组类型。
@@ -1940,7 +1940,7 @@ isFloat64Array(value: Object):boolean
### isGeneratorFunction8+
-isGeneratorFunction(value: Object):boolean
+isGeneratorFunction(value: Object): boolean
检查输入的value是否是generator函数类型。
@@ -1965,7 +1965,7 @@ isGeneratorFunction(value: Object):boolean
### isGeneratorObject8+
-isGeneratorObject(value: Object):boolean
+isGeneratorObject(value: Object): boolean
检查输入的value是否是generator对象类型。
@@ -1992,7 +1992,7 @@ isGeneratorObject(value: Object):boolean
### isInt8Array8+
-isInt8Array(value: Object):boolean
+isInt8Array(value: Object): boolean
检查输入的value是否是Int8Array数组类型。
@@ -2017,7 +2017,7 @@ isInt8Array(value: Object):boolean
### isInt16Array8+
-isInt16Array(value: Object):boolean
+isInt16Array(value: Object): boolean
检查输入的value是否是Int16Array数组类型。
@@ -2042,7 +2042,7 @@ isInt16Array(value: Object):boolean
### isInt32Array8+
-isInt32Array(value: Object):boolean
+isInt32Array(value: Object): boolean
检查输入的value是否是Int32Array数组类型。
@@ -2067,7 +2067,7 @@ isInt32Array(value: Object):boolean
### isMap8+
-isMap(value: Object):boolean
+isMap(value: Object): boolean
检查输入的value是否是Map类型。
@@ -2092,7 +2092,7 @@ isMap(value: Object):boolean
### isMapIterator8+
-isMapIterator(value: Object):boolean
+isMapIterator(value: Object): boolean
检查输入的value是否是Map的Iterator类型。
@@ -2118,7 +2118,7 @@ isMapIterator(value: Object):boolean
### isNativeError8+
-isNativeError(value: Object):boolean
+isNativeError(value: Object): boolean
检查输入的value是否是Error类型。
@@ -2143,7 +2143,7 @@ isNativeError(value: Object):boolean
### isNumberObject8+
-isNumberObject(value: Object):boolean
+isNumberObject(value: Object): boolean
检查输入的value是否是Number对象类型。
@@ -2168,7 +2168,7 @@ isNumberObject(value: Object):boolean
### isPromise8+
-isPromise(value: Object):boolean
+isPromise(value: Object): boolean
检查输入的value是否是Promise类型。
@@ -2193,7 +2193,7 @@ isPromise(value: Object):boolean
### isProxy8+
-isProxy(value: Object):boolean
+isProxy(value: Object): boolean
检查输入的value是否是Proxy类型。
@@ -2220,7 +2220,7 @@ isProxy(value: Object):boolean
### isRegExp8+
-isRegExp(value: Object):boolean
+isRegExp(value: Object): boolean
检查输入的value是否是RegExp类型。
@@ -2245,7 +2245,7 @@ isRegExp(value: Object):boolean
### isSet8+
-isSet(value: Object):boolean
+isSet(value: Object): boolean
检查输入的value是否是Set类型。
@@ -2270,7 +2270,7 @@ isSet(value: Object):boolean
### isSetIterator8+
-isSetIterator(value: Object):boolean
+isSetIterator(value: Object): boolean
检查输入的value是否是Set的Iterator类型。
@@ -2296,7 +2296,7 @@ isSetIterator(value: Object):boolean
### isStringObject8+
-isStringObject(value: Object):boolean
+isStringObject(value: Object): boolean
检查输入的value是否是String对象类型。
@@ -2347,7 +2347,7 @@ isSymbolObjec(value: Object): boolean
### isTypedArray8+
-isTypedArray(value: Object):boolean
+isTypedArray(value: Object): boolean
检查输入的value是否是TypedArray类型的辅助类型。
@@ -2374,7 +2374,7 @@ TypedArray类型的辅助类型,包括Int8Array、Int16Array、Int32Array、Ui
### isUint8Array8+
-isUint8Array(value: Object):boolean
+isUint8Array(value: Object): boolean
检查输入的value是否是Uint8Array数组类型。
@@ -2399,7 +2399,7 @@ isUint8Array(value: Object):boolean
### isUint8ClampedArray8+
-isUint8ClampedArray(value: Object):boolean
+isUint8ClampedArray(value: Object): boolean
检查输入的value是否是Uint8ClampedArray数组类型。
@@ -2424,7 +2424,7 @@ isUint8ClampedArray(value: Object):boolean
### isUint16Array8+
-isUint16Array(value: Object):boolean
+isUint16Array(value: Object): boolean
检查输入的value是否是Uint16Array数组类型。
@@ -2449,7 +2449,7 @@ isUint16Array(value: Object):boolean
### isUint32Array8+
-isUint32Array(value: Object):boolean
+isUint32Array(value: Object): boolean
检查输入的value是否是Uint32Array数组类型。
@@ -2474,7 +2474,7 @@ isUint32Array(value: Object):boolean
### isWeakMap8+
-isWeakMap(value: Object):boolean
+isWeakMap(value: Object): boolean
检查输入的value是否是WeakMap类型。
@@ -2499,7 +2499,7 @@ isWeakMap(value: Object):boolean
### isWeakSet8+
-isWeakSet(value: Object):boolean
+isWeakSet(value: Object): boolean
检查输入的value是否是WeakSet类型。