【发布时间】:2017-05-08 09:16:11
【问题描述】:
我想使用 src 属性在谷歌应用程序脚本中显示图像。我把文件夹ID和路径。但是图像无法显示。我在这里共享文件夹。
感谢您的帮助!
https://drive.google.com/drive/folders/0ByNw-B9nXMcbMkxHTGt2X2xUTzQ
function doGet() {
var html = HtmlService.createTemplateFromFile('index').evaluate()
.setTitle('picture').setSandboxMode(HtmlService.SandboxMode.NATIVE);
return html;
}
<!DOCTYPE html>
<html>
<head>
<base target="_top">
</head>
<body>
<p> Dispaly picture </p>
<p><img src="https://drive.google.com/drive/folders/0ByNw-B9nXMcbMkxHTGt2X2xUTzQ/200w.gif"> </p>
</body>
</html>
【问题讨论】:
-
SandboxMode.IFRAM 现在是唯一的支持模式。 NATIVE 和 emulated 模式都已折旧两年。