未验证 提交 3b0a37bd 编写于 作者: O openharmony_ci 提交者: Gitee

!2330 updated docs

Merge pull request !2330 from 史凯/master
...@@ -350,7 +350,7 @@ var pres = process.getEnvironmentVar("PATH") ...@@ -350,7 +350,7 @@ var pres = process.getEnvironmentVar("PATH")
## process.runCmd ## 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. Forks a new process to run a shell command and returns the **ChildProcess** object.
...@@ -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(signal: number, pid: 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.
...@@ -174,7 +174,7 @@ A constructor used to create a **TextDecoder** object. ...@@ -174,7 +174,7 @@ A constructor used to create a **TextDecoder** object.
### decode ### decode
decode(input: Unit8Array, options?: {stream?: false}): string decode(input: Uint8Array, options?: { stream?: false }): string
Decodes the input content. Decodes the input content.
......
...@@ -379,7 +379,7 @@ var pres = process.getEnvironmentVar("PATH") ...@@ -379,7 +379,7 @@ var pres = process.getEnvironmentVar("PATH")
## process.runCmd ## 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对象。 通过runcmd可以fork一个新的进程来运行一段shell,并返回ChildProcess对象。
...@@ -574,7 +574,7 @@ var time = process.uptime(); ...@@ -574,7 +574,7 @@ var time = process.uptime();
## process.kill ## process.kill
kill(pid: number, signal: number ): boolean kill(signal: number, pid: number): boolean
发送signal到指定的进程,结束指定进程。 发送signal到指定的进程,结束指定进程。
......
...@@ -147,7 +147,7 @@ promiseWrapper(original: (err: Object, value: Object) => void): Object ...@@ -147,7 +147,7 @@ promiseWrapper(original: (err: Object, value: Object) => void): Object
### constructor ### constructor
constructor(encoding?: string, options?: { fatal?: boolean; ignoreBOM?: boolean }) constructor(encoding?: string, options?: { fatal?: boolean; ignoreBOM?: boolean },)
TextDecoder的构造函数。 TextDecoder的构造函数。
...@@ -174,7 +174,7 @@ TextDecoder的构造函数。 ...@@ -174,7 +174,7 @@ TextDecoder的构造函数。
### decode ### decode
decode(input: Unit8Array, options?: {stream?: false}): string decode(input: Uint8Array, options?: { stream?: false }): string
通过输入参数解码后输出对应文本。 通过输入参数解码后输出对应文本。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册