- swan.deleteEventOnCalendar
- 方法参数
- object 参数说明
- 示例
- 图片示例
- 代码示例
- 方法参数
swan.deleteEventOnCalendar
基础库 3.140.1 开始支持,低版本需做兼容处理。
解释:删除日历上的某个活动
Web 态说明:受浏览器限制,Web 态不支持系统日历相关功能,调用该方法会执行失败回调函数。
方法参数
Object object
object 参数说明
| 参数名 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
|
eventId |
String |
是 |
– |
活动唯一标识,可通过 addEventOnCalendar 获取 |
|
success |
Function |
否 |
– |
接口调用成功的回调函数 |
|
fail |
Function |
否 |
– |
接口调用失败的回调函数 |
|
complete |
Function |
否 |
– |
接口调用结束的回调函数(调用成功、失败都会执行) |
示例
跳转编辑工具
在开发者工具中打开
在 WEB IDE 中打开
扫码体验
代码示例
请使用百度APP扫码
图片示例
代码示例
- SWAN
- JS
<view class="wrap"><view class="card-area"><view class="tip-strong">新建/删除日程后,可在系统日历中查看</view><form bindsubmit="submitForm" report-submit="true"><view class="submitmain"><view class="cont_title">日程信息</view><view class="content"><view class="list"><view class="list_key">主题信息</view><view class="list_value">{{title}}</view></view><view class="list"><view class="list_key">开始时间</view><view class="list_value">{{startTime}}</view></view><view class="list"><view class="list_key">结束时间</view><view class="list_value">{{endTime}}</view></view><view class="list"><view class="list_key">回流url</view><view class="list_value">{{url}}</view></view><view class="list"><view class="list_key">活动地点</view><view class="list_value">{{location}}</view></view><view class="list"><view class="list_key">提前提醒</view><view class="list_value">{{remindMinutesBefore}}</view></view></view></view><button type="primary" bindtap="addEventOnCalendar">新建日程</button><button type="primary" disabled="{{disabled}}" bindtap="deleteEventOnCalendar">删除日程</button></form></view></view>


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






暂无评论内容