- swan.closeCommunityEditor
- 方法参数
- emojiPath 参数说明
- 示例
- 图片示例
- 代码示例
- 方法参数
swan.closeCommunityEditor
解释: 关闭原生全屏内容发布器
Web 态说明:内容发布器功能暂不支持,调用会执行失败回调方法。
方法参数
Object object
emojiPath 参数说明
| 属性名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
|
success |
Function |
否 |
发布成功的回调函数 |
|
|
fail |
Function |
否 |
发布失败的回调函数 |
|
|
complete |
Function |
否 |
接口调用结束的回调函数(调用成功、失败都会执行) |
示例
在开发者工具中打开
在开发者工具中打开
在 WEB IDE 中打开
扫码体验
代码示例
请使用百度APP扫码
图片示例
代码示例
- SWAN
- JS
<view class="wrap"><view class="card-area"><view class="top-description border-bottom"><view>原帖标题</view><view>{{content}}</view></view><button type="primary" bindtap="openCommunityEditor">点击回复原帖</button></view></view>


![晴川云Minecraft Wiki教程:初始资源[ ],晴川云](https://baike.qcidc.com/wp-content/uploads/2025/09/20250919082314545-u_3602614645_4035323857fm_253fmt_autoapp_138f_JPEG.jpeg)







暂无评论内容