如何创建自定义运行触发器以执行函数以在下午6点运行备用星期一。
function createCustomTrigger() {
ScriptApp.newTrigger('myFunction')
.timeBased()
.onWeekDay(ScriptApp.WeekDay.MONDAY)
.atHour(6)
.create();
}
答案 0 :(得分:0)
ScriptApp.newTrigger('myFunction')
.timeBased()
.everyWeeks(2)
.onWeekDay(ScriptApp.Weekday.MONDAY)
.atHour(6)
.create();