后浪云百度小程序教程:swan.closeCommunityEditor

  • swan.closeCommunityEditor
    • 方法参数
      • emojiPath 参数说明
    • 示例
      • 图片示例
      • 代码示例

    swan.closeCommunityEditor

    解释: 关闭原生全屏内容发布器
    Web 态说明:内容发布器功能暂不支持,调用会执行失败回调方法。

    方法参数

    Object object

    emojiPath 参数说明

    属性名 类型 必填 默认值 说明

    success

    Function

    发布成功的回调函数

    fail

    Function

    发布失败的回调函数

    complete

    Function

    接口调用结束的回调函数(调用成功、失败都会执行)

    示例

    在开发者工具中打开

    在开发者工具中打开

    在 WEB IDE 中打开

    扫码体验

    代码示例

    后浪云百度小程序教程:swan.closeCommunityEditor插图

    请使用百度APP扫码

    图片示例

    后浪云百度小程序教程:swan.closeCommunityEditor插图1

    代码示例

    • SWAN
    • JS
     
     
     
    1. <view class="wrap">
    2. <view class="card-area">
    3. <view class="top-description border-bottom">
    4. <view>原帖标题</view>
    5. <view>{{content}}</view>
    6. </view>
    7. <button type="primary" bindtap="openCommunityEditor">点击回复原帖</button>
    8. </view>
    9. </view>
    THE END