提交 972c6b4a 编写于 作者: A anyueling

文档多余括号修改

Signed-off-by: Nanyueling <anyueling@huawei.com>
上级 101709e3
......@@ -33,8 +33,9 @@ var config = {
在开发stage模型下的应用程序时,不涉及属性标识 "cleartextTraffic"。
下载服务器需要支持HTTP协议的head方法,能够通过Content-length获取下载数据大小,否则下载任务失败,可通过[on('fail')<sup>7+</sup>)](#onfail7)查看失败原因。
下载服务器需要支持HTTP协议的head方法,能够通过Content-length获取下载数据大小,否则下载任务失败,可通过[on('fail')<sup>7+</sup>](#onfail7)查看失败原因。
上传目前仅支持HTTP请求,不支持HTTPS。
## 常量
......@@ -104,7 +105,7 @@ uploadFile(context: BaseContext, config: UploadConfig): Promise&lt;UploadTask&gt
```js
let uploadTask;
let uploadConfig = {
url: 'https://patch',
url: 'http://patch',
header: { key1: "value1", key2: "value2" },
method: "POST",
files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }],
......@@ -148,7 +149,7 @@ uploadFile(context: BaseContext, config: UploadConfig, callback: AsyncCallback&l
```js
let uploadTask;
let uploadConfig = {
url: 'https://patch',
url: 'http://patch',
header: { key1: "value1", key2: "value2" },
method: "POST",
files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }],
......@@ -194,7 +195,7 @@ upload(config: UploadConfig): Promise&lt;UploadTask&gt;
```js
let uploadTask;
let uploadConfig = {
url: 'https://patch',
url: 'http://patch',
header: { key1: "value1", key2: "value2" },
method: "POST",
files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }],
......@@ -234,7 +235,7 @@ upload(config: UploadConfig, callback: AsyncCallback&lt;UploadTask&gt;): void
```js
let uploadTask;
let uploadConfig = {
url: 'https://patch',
url: 'http://patch',
header: { key1: "value1", key2: "value2" },
method: "POST",
files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }],
......@@ -280,7 +281,7 @@ upload(context: BaseContext, config: UploadConfig): Promise&lt;UploadTask&gt;
```js
let uploadTask;
let uploadConfig = {
url: 'https://patch',
url: 'http://patch',
header: { key1: "value1", key2: "value2" },
method: "POST",
files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }],
......@@ -319,7 +320,7 @@ upload(context: BaseContext, config: UploadConfig, callback: AsyncCallback&lt;Up
```js
let uploadTask;
let uploadConfig = {
url: 'https://patch',
url: 'http://patch',
header: { key1: "value1", key2: "value2" },
method: "POST",
files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册