var dur_month = 1
const startDate = new Date()
startDate.setMonth(startDate.getMonth() - dur_month)
console.log(`日历的开始时间 ${
startDate.toLocaleDateString()}`)
const endDate = new Date()
endDate.setMonth(endDate.getMonth() + dur_month)
console.log(`日历的结束时间 ${
endDate.toLocaleDateString()}`)
const reminders = await Reminder.allDueBetween(startDate, endDate)
console.log(`获取 ${
reminders.length} 条提醒事项`)
var calendar = await Calendar.forEvents()
//获取日历名和对应的日历
var m_dict = {
}
for(cal of</
ios提醒事项同步日历scriptable代码
最新推荐文章于 2024-05-19 14:50:49 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)