diff --git a/en/application-dev/reference/apis/js-apis-process.md b/en/application-dev/reference/apis/js-apis-process.md index 7edbfd41dd53f609bfb3062ead40ba85fdbe0008..1e1e66595fc9c4fcc03fa48f6ca9de4a15214689 100755 --- a/en/application-dev/reference/apis/js-apis-process.md +++ b/en/application-dev/reference/apis/js-apis-process.md @@ -350,7 +350,7 @@ var pres = process.getEnvironmentVar("PATH") ## process.runCmd -runCmd(command: string, options?: { timeout : number, killSignal : number | string, maxBuffer : number }) : ChildProcess +runCmd(command: string, options?: { timeout : number, killSignal : number | string, maxBuffer : number }): ChildProcess Forks a new process to run a shell command and returns the **ChildProcess** object. @@ -527,7 +527,7 @@ var time = process.uptime(); ## process.kill -kill(pid: number, signal: number ): boolean +kill(signal: number, pid: 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 index 6dd2b4319a9323b83908af7c7b4ce838120cad27..8f24f6a17a4f5bbac42b8b6ddbe48711b80af4ab 100755 --- 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. @@ -174,7 +174,7 @@ A constructor used to create a **TextDecoder** object. ### decode -decode(input: Unit8Array, options?: {stream?: false}): string +decode(input: Uint8Array, options?: { stream?: false }): string Decodes the input content. diff --git a/zh-cn/application-dev/reference/apis/js-apis-process.md b/zh-cn/application-dev/reference/apis/js-apis-process.md index 5b5cd956dc51bf6e9a313008a8349b16d728fc5f..8cf388df7ac0a971829eb6d4a29e395c1883af3b 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-process.md +++ b/zh-cn/application-dev/reference/apis/js-apis-process.md @@ -379,7 +379,7 @@ var pres = process.getEnvironmentVar("PATH") ## process.runCmd -runCmd(command: string, options?: { timeout : number, killSignal : number | string, maxBuffer : number }) : ChildProcess +runCmd(command: string, options?: { timeout : number, killSignal : number | string, maxBuffer : number }): ChildProcess 通过runcmd可以fork一个新的进程来运行一段shell,并返回ChildProcess对象。 @@ -574,7 +574,7 @@ var time = process.uptime(); ## process.kill -kill(pid: number, signal: number ): boolean +kill(signal: number, pid: number): boolean 发送signal到指定的进程,结束指定进程。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-util.md b/zh-cn/application-dev/reference/apis/js-apis-util.md index 0df5317f66584b793339be03c88147b95e8918f3..4f160237ffa92af7655936bba888696dbc78778a 100755 --- 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的构造函数。 @@ -174,7 +174,7 @@ TextDecoder的构造函数。 ### decode -decode(input: Unit8Array, options?: {stream?: false}): string +decode(input: Uint8Array, options?: { stream?: false }): string 通过输入参数解码后输出对应文本。