From a4754f515d042f3bd799c2188d642deb110441d4 Mon Sep 17 00:00:00 2001 From: shikai-123 Date: Tue, 22 Mar 2022 17:01:19 +0800 Subject: [PATCH] updated docs Signed-off-by: shikai-123 --- en/application-dev/reference/apis/js-apis-process.md | 4 ++-- en/application-dev/reference/apis/js-apis-util.md | 4 ++-- zh-cn/application-dev/reference/apis/js-apis-process.md | 4 ++-- zh-cn/application-dev/reference/apis/js-apis-util.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-process.md b/en/application-dev/reference/apis/js-apis-process.md index 7edbfd41dd..1e1e66595f 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 6dd2b4319a..8f24f6a17a 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 5b5cd956dc..8cf388df7a 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 0df5317f66..4f160237ff 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 通过输入参数解码后输出对应文本。 -- GitLab