Google 应用程序脚本打开新 window
Google apps Script open new window
直到今天一切正常,但现在出了点问题
我在 code.gs
中有代码
function demoHtmlServices() {
var ss = SpreadsheetApp.getActiveSpreadsheet(),
html = HtmlService.createHtmlOutputFromFile('ff');
html.setSandboxMode(HtmlService.SandboxMode.NATIVE);
html.setWidth(700);
html.setHeight(600);
ss.show(html);
}
ff.html 包含
<body >
<form class="register active" >
<button style="font-size:14px;" id="BackAuctionBut" >Back</button><button style="font-size:14px;" >Add</button>
</form>
</body>
所以当我按下按钮时 google 在新标签页中打开网址,例如
http://5a00f7bc-dcab-4655-9548-d6dc0365e2c5.foo.bar/?
http://faa37b59-0545-4bc5-95fe-433d003622cd.foo.bar/?
http://78bf0ef1-f8ba-4ac5-92bf-cb7ee6085300.foo.bar/?
google 有什么事吗?
HtmlService.SandboxMode.NATIVE 似乎已被 google
禁用
直到今天一切正常,但现在出了点问题
我在 code.gs
中有代码function demoHtmlServices() {
var ss = SpreadsheetApp.getActiveSpreadsheet(),
html = HtmlService.createHtmlOutputFromFile('ff');
html.setSandboxMode(HtmlService.SandboxMode.NATIVE);
html.setWidth(700);
html.setHeight(600);
ss.show(html);
}
ff.html 包含
<body >
<form class="register active" >
<button style="font-size:14px;" id="BackAuctionBut" >Back</button><button style="font-size:14px;" >Add</button>
</form>
</body>
所以当我按下按钮时 google 在新标签页中打开网址,例如
http://5a00f7bc-dcab-4655-9548-d6dc0365e2c5.foo.bar/? http://faa37b59-0545-4bc5-95fe-433d003622cd.foo.bar/? http://78bf0ef1-f8ba-4ac5-92bf-cb7ee6085300.foo.bar/?
google 有什么事吗? HtmlService.SandboxMode.NATIVE 似乎已被 google
禁用