javascript - Google Apps 脚本网络应用返回一个奇怪的错误
问题描述
我正在使用 Google Apps 脚本制作网络应用程序。这是我的代码:
function doGet(e) {
return (HtmlService.createHtmlOutputFromFile('index.html'));
}
每当我运行它时,我都会收到此错误:
Exception: The parameters () don't match the method signature for HtmlService.createHtmlOutputFromFile. (line 2, file "Code")
这是代码问题,而不是部署问题。
解决方案
推荐阅读
- python - PyGame 窗口在没有输入的情况下打开几秒钟后关闭
- reactjs - 为什么我无法使用内联样式更改以下自动完成框的高度?如何将其高度设置为按钮高度?
- c++ - C++ - 如何在 Credential Provider V1 (Vista-Win7) 中管理其他用户
- selenium - 使用 Chrome.ahk 在 AHK 上进行下拉选择
- django - 我应该在何时何地连接和断开 Mongoengine
- swift - Swift - 按日期对表格视图数据进行排序,仅对初始视图中的单元格进行排序
- windows - 将 Exchange Server 移动到同一林中的新域
- angularjs - 如何在 AngularJS $http 中处理较长的响应时间?
- c++ - 设置 pipe-max-size 时写入管道阻塞
- ansible - 如何使用与 git url 不同的名称安装 Galaxy 角色?