Mypage.html
<div class="seven"><button onClick="Submit()">submit</button> </div>
<script type="text/javascript">
function submit() {
google.script.run.scores(document.forms[0]);
}
</script>
....上点击刷新HTML网页服务
Javascript.gs
function scores(form){
Logger.log("I am called")
}
上面的代码完美地工作,但每次我点击按钮,我想要的HTML模板化/部署的网页加载/重载/刷新还有...
我尝试添加
google.script.run.scores(document.forms[0]); (continued from above code, hence line repeated))
google.script.host.refresh (basically got the idea from host.close)
google.script.host.reload
google.script.host.load
请有人可以帮助我得到正确的代码,通过该的onClick分数函数被调用的按钮(目前正在工作)以及正在刷新的页面。
注:我想它刷新,原因是 - 上提交,数据被推向GSheet它再次呼吁在刷新下拉....提前
感谢....