提交 5348ff9b 编写于 作者: A anyueling

修改

Signed-off-by: Nanyueling <anyueling@huawei.com>
上级 70bcc51b
...@@ -320,21 +320,21 @@ on(type: 'headerReceive', callback: (header: object) =&gt; void): void ...@@ -320,21 +320,21 @@ on(type: 'headerReceive', callback: (header: object) =&gt; void): void
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| Array&lt;[TaskState](#taskstatesup9sup)&gt;| array | 是 | 上传任务返回结果 | | taskstates | Array&lt;[TaskState](#taskstate9)&gt; | 是 | 上传任务返回结果 |
**示例:** **示例:**
```js ```js
uploadTask.on('complete', function callback(TaskStates) { uploadTask.on('complete', function callback(taskStates) {
for (let i = 0; i < TaskState.length; i++ ) { for (let i = 0; i < taskStates.length; i++ ) {
console.info("upOnComplete taskState:" + JSON.stringify(TaskStates[i])); console.info("upOnComplete taskState:" + JSON.stringify(taskStates[i]));
} }
} }
); );
uploadTask.on('fail', function callback(TaskStates) { uploadTask.on('fail', function callback(taskStates) {
for (let i = 0; i < TaskState.length; i++ ) { for (let i = 0; i < taskStates.length; i++ ) {
console.info("upOnFail taskState:" + JSON.stringify(TaskStates[i])); console.info("upOnFail taskState:" + JSON.stringify(taskStates[i]));
} }
} }
); );
...@@ -428,21 +428,21 @@ off(type: 'headerReceive', callback?: (header: object) =&gt; void): void ...@@ -428,21 +428,21 @@ off(type: 'headerReceive', callback?: (header: object) =&gt; void): void
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| Array&lt;[TaskState](#taskstatesup9sup)&gt; | array | 是 | 上传任务返回结果 | | taskstates | Array&lt;[TaskState](#taskstate9)&gt; | 是 | 上传任务返回结果 |
**示例:** **示例:**
```js ```js
uploadTask.off('complete', function callback(TaskStates) { uploadTask.off('complete', function callback(taskStates) {
for (let i = 0; i < TaskState.length; i++ ) { for (let i = 0; i < taskStates.length; i++ ) {
console.info("upOnComplete taskState:" + JSON.stringify(TaskStates[i])); console.info("upOnComplete taskState:" + JSON.stringify(taskStates[i]));
} }
} }
); );
uploadTask.off('fail', function callback(TaskStates) { uploadTask.off('fail', function callback(taskStates) {
for (let i = 0; i < TaskState.length; i++ ) { for (let i = 0; i < taskStates.length; i++ ) {
console.info("upOnFail taskState:" + JSON.stringify(TaskStates[i])); console.info("upOnFail taskState:" + JSON.stringify(taskStates[i]));
} }
} }
); );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册