Html 为什么iframe在嵌入Web应用程序页面时不加载?

Html 为什么iframe在嵌入Web应用程序页面时不加载?,html,google-apps-script,iframe,web-applications,Html,Google Apps Script,Iframe,Web Applications,我尝试将此html代码加载到Google脚本: 使用名称“page”保存文件,然后在Google脚本中使用: 函数doGet(){ 返回HtmlService.createHtmlOutFromFile('page'); } 它查看iframe,但不包含任何内容。我在这里遗漏了什么吗?你不能在应用程序脚本中显示iFrame。我认为HTML代码没有任何问题,所以我猜你是对的。但是,如果我向google站点添加一个iframe小工具,并让脚本使用站点API(getHtmlContent和setHt

我尝试将此html代码加载到Google脚本:

使用名称“page”保存文件,然后在Google脚本中使用:

函数doGet(){
返回HtmlService.createHtmlOutFromFile('page');
}


它查看iframe,但不包含任何内容。我在这里遗漏了什么吗?

你不能在应用程序脚本中显示iFrame。

我认为HTML代码没有任何问题,所以我猜你是对的。但是,如果我向google站点添加一个iframe小工具,并让脚本使用站点API(
getHtmlContent
setHtmlContent
)来处理它,它是否有效呢?那就行了。关键是不能在脚本自己的内容中显示iframe。