后浪云百度小程序教程:swan.closeCommunityEditor
- 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>
版权声明:
作者:后浪云
链接:https://www.idc.net/help/186290/
文章版权归作者所有,未经允许请勿转载。
THE END