【发布时间】:2015-06-27 08:09:08
【问题描述】:
我有一个谷歌应用程序脚本,我用它来读取谷歌网站的一些属性。我想在脚本小工具框中显示站点上的脚本结果。 结果只是页面名称,所以我认为它可以显示为 html 文本。有办法吗?
例如,如果我使用这样的代码:
(代码.gs)
function doGet() {
return HtmlService.createHtmlOutputFromFile('down')
.setSandboxMode(HtmlService.SandboxMode.NATIVE);
}
function getnames {
var list_items = SitesApp.getPageByUrl("https://sites.google.com/a/blablabla").getListItems();//got all list items here!
Logger.log('Number of people on list: '+list_items.length+' Number of people pages: '+pages.length);
return list_items
}
(down.html)
????
我想查看网站页面上显示的 list_items 中的值。
【问题讨论】: