Skip to content

Commit

Permalink
Merge pull request #342 from ifanrx/3.23.3
Browse files Browse the repository at this point in the history
修改 SDK 版本号为  3.23.3,更新断点续传文档
  • Loading branch information
jiajun-ifanr authored Aug 24, 2023
2 parents 47a3b8e + e6ef5df commit 7b82d49
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 11 deletions.
18 changes: 9 additions & 9 deletions book.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
],
"title": "知晓云平台开发文档 2.0+",
"variables": {
"latestVersionWechat": "3.23.1",
"latestVersionAlipay": "3.23.1",
"latestVersionWeb": "3.23.1",
"latestVersionQQ": "3.23.1",
"latestVersionBaidu": "3.23.1",
"latestVersionWechatPlugin": "3.23.1",
"latestVersionBytedance": "3.23.1",
"latestVersionJingdong": "3.23.1",
"latestVersionKuaishou": "3.23.1",
"latestVersionWechat": "3.23.3",
"latestVersionAlipay": "3.23.3",
"latestVersionWeb": "3.23.3",
"latestVersionQQ": "3.23.3",
"latestVersionBaidu": "3.23.3",
"latestVersionWechatPlugin": "3.23.3",
"latestVersionBytedance": "3.23.3",
"latestVersionJingdong": "3.23.3",
"latestVersionKuaishou": "3.23.3",
"imgURLClipDemo": "https://cloud-minapp-6.cloud.ifanrusercontent.com/1fco21YvWNpWfukk.png!/both/400x400"
},
"pluginsConfig": {
Expand Down
40 changes: 38 additions & 2 deletions js-sdk/file/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,27 @@ file 参数说明:

**示例代码**

{% tabs first="Web" %}
{% tabs lgFirst="微信小程序", lgSecond="Web" , lgThird="支付宝小程序" %}

{% content "first" %}
{% content "lgFirst" %}
```javascript
wx.chooseVideo({
success: function (res) {
let File = new app.BaaS.File()
let fileParams = { filePath: res.tempFilePath, fileSize: res.size }
// 方式一,参数为文件分类名
let metaData = {categoryName: 'SDK'}
File.multipartUpload(fileParams, metaData)
.then(
res => {
...
},
)
}
})
```

{% content "lgSecond" %}
```html
<input type="file" id="file">
```
Expand All @@ -281,6 +299,24 @@ f.addEventListener('change', function(e) {
})
})
```

{% content "lgThird" %}
```javascript
my.chooseVideo({
success: function (res) {
let File = new app.BaaS.File()
let fileParams = { filePath: res.tempFilePath, fileSize: res.size }
// 方式一,参数为文件分类名
let metaData = {categoryName: 'SDK'}
File.multipartUpload(fileParams, metaData)
.then(
res => {
...
},
)
}
})
```
{% endtabs %}

## 获取文件详情
Expand Down

0 comments on commit 7b82d49

Please sign in to comment.