提交 a4754f51 编写于 作者: S shikai-123

updated docs

Signed-off-by: Nshikai-123 <shikai25@huawei.com>
上级 52ae4725
......@@ -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.
......
......@@ -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.
......
......@@ -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到指定的进程,结束指定进程。
......
......@@ -147,7 +147,7 @@ promiseWrapper(original: (err: Object, value: Object) =&gt; 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
通过输入参数解码后输出对应文本。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册