javascript - 如何在 Google Apps 脚本中使用桌面通知?

标签 javascript google-apps-script

我尝试运行此函数,但没有任何反应;

function notify() {
    var notification = webkitNotifications.createNotification(
      '',
      'title',
      'this is the message'
    );
    notification.show();
}

我在 google 上找不到有关 google apps 脚本中的桌面通知的任何内容, 所以我来了。

最佳答案

网络通知 API 中的 webKitNotifications.createHTMLNotification() 已被弃用。查看文档以了解更多详细信息 Documentation

关于javascript - 如何在 Google Apps 脚本中使用桌面通知?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22886746/

相关文章:

javascript - Google Apps 脚本服务器端的全局变量错误

javascript - 使用 anchor 将 href 链接到下一个 div

javascript - 谷歌文档脚本

javascript - "Document is missing (perhaps it was deleted?)"引用刚刚创建的文档

java - 使用 SQL 数据库中的值过滤 JSP 上的表值

javascript - 如何为 Google Apps 脚本 createFile() API 转换 bloburl/objecturl?

google-apps-script - 移动列时更新脚本单元格引用

javascript - MongoDb:forEach 内存力好吗?

javascript - 在两个不同的 json 数组中合并相同的特定 json 对象

javascript - 调用响应事件的JS函数时, 'false'参数是什么意思