提交 821f6663 编写于 作者: 雪洛's avatar 雪洛

docs: uniCloud init

上级 20943264
......@@ -8,7 +8,7 @@ uniCloud.callFunction()
uniCloud.uploadFile()
```
若项目连接了多个服务空间,`uniCloud`无法自动绑定;需开发者在客户端代码中,手动调用初始化方法`uniCloud.init`,绑定服务空间。
若项目内需要使用多个服务空间,`uniCloud`无法自动绑定;需开发者在客户端代码中,手动调用初始化方法`uniCloud.init`,绑定服务空间。
`uniCloud.init`方法会返回一个`uniCloud`实例,之后云开发API的调用都需要通过该`uniCloud`实例发起(类似实例调用)。
......@@ -29,9 +29,6 @@ function init(options):uniCloud
|clientSecret |String |是 |- |仅阿里云支持,可以在[uniCloud控制台](https://unicloud.dcloud.net.cn)服务空间列表中查看 |
|endpoint |String |否 |`https://api.bspapp.com` |服务空间地址,仅阿里云侧支持 |
<!-- |autoSignIn |Boolean|否 |true |是否自动匿名登录 |仅腾讯云侧支持 | -->
**示例代码**
```javascript
......
......@@ -614,6 +614,8 @@ let result = await uniCloud.downloadFile({
使用阿里云作为服务商时,云存储支持直接使用**restful api**对资源进行处理,下表列出支持的操作类型。
如果你的数据库及云函数使用腾讯云,也是可以使用阿里云云存储的。详细用法参考:[连接多个服务空间](uniCloud/init.md)
|功能 |操作参数 |参考文档 |
|:-: |:-: |:-: |
|图片缩放 |resize |[点击查看](https://help.aliyun.com/document_detail/44688.html?spm=a2c4g.11186623.2.10.274651b0YkQ5hE#concept-hxj-c4n-vdb) |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册