Function 我无法在webapp的服务器端代码中调用函数
此项目部署为webapp新项目。如果单击执行日志,则未找到有关myfunction()的任何内容。请告诉我如何在服务器端代码中运行函数 code.jsFunction 我无法在webapp的服务器端代码中调用函数,function,Function,此项目部署为webapp新项目。如果单击执行日志,则未找到有关myfunction()的任何内容。请告诉我如何在服务器端代码中运行函数 code.js function doGet(){ return HtmlService.createHtmlOutputFromFile("index"); } function myFunction() { Logger.log("welcome to web app"); } inde
function doGet(){
return HtmlService.createHtmlOutputFromFile("index");
}
function myFunction() {
Logger.log("welcome to web app");
}
index.html
<!DOCTYPE html>
<html>
<head>
<base target="_top">
</head>
<body>
<script>
google.script.run myFunction();
</script>
</body>
</html>
google.script.run myFunction();