首页 > 解决方案 > 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")

这是代码问题,而不是部署问题。

标签: javascriptgoogle-apps-scriptweb-applications

解决方案


推荐阅读