任何人都可以向我解釋爲什麼在NATIVE沙盒模式下下面的代碼不會發布?當它處於EMULATED模式時,它可以工作。在NATIVE模式下,表單不會發布
Code.gs
function doGet(e) {
var template = HtmlService.createTemplateFromFile('Index.html');
template.action = ScriptApp.getService().getUrl();
return template.evaluate().setSandboxMode(HtmlService.SandboxMode.NATIVE);
}
function doPost(e) {
Logger.log("TESTING!");
}
的Index.html
<form action="<?= action ?>" method="post">
<label>Phone: <input type="text" name="phone"></label><br>
<label><input type="submit"></label>
</form>
什麼是控制檯OU輸入鉻? –
什麼都沒有......空:(你可以在Chrome中複製它嗎? – s2000coder