简体   繁体   English

谷歌应用脚本语法错误

[英]Google-apps-script SyntaxError

I have a problem with the doGet () function.If it always runs error SyntaxError: Unexpected token ')' (line 12, file "Code")我的 doGet () function 有问题。如果它总是运行错误SyntaxError: Unexpected token ')' (第 12 行,文件“代码”)

function doGet() {
  var ss = SpreadsheetApp.openByUrl(url);
  var ws = ss.getSheetByName("Data");
  var range = ws.getRange(1,1,ws.getRange("A3").getDataRegion().getLastRow(),1).getValue(); 
  
  var tmp = HtmlService.createTemplateFromFile('page');
  
  tmp.list = range;//.map(function(r){return r[0];} );
  
   return tmp.evaluate();
  
}

在此处输入图像描述 Where could be the problem?问题可能出在哪里? Thank you for your answer.谢谢您的回答。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 该脚本可以正常运行,但不能在“ google-apps-script”中使用 - The script is working fine, but not in 'google-apps-script' 在google-apps-script中获取当前单词 - Get current word in google-apps-script 在范围上应用If / Then(google-apps-script) - Apply If/Then on a Range (google-apps-script) 使用google-apps-script中的脚本,有什么建议吗? - Working on script in google-apps-script, any suggestions? 为Google表单在Google应用脚本中循环setRows - looping setRows in Google-apps-script for Google forms 如何让javascript等待Google-apps-script的结果? - How to make javascript wait on the result of Google-apps-script? Google-apps-script:简单支票值-返回值 - Google-apps-script: Simple Check Value - Return Value 将列表框的选定值传递给google-apps-script中的另一个列表框 - Passing selected value of a listbox to another listbox in google-apps-script 如何在 google-apps-script Web 应用程序的 for-loop 函数中将 async/await 与 FileReader 一起使用? - How to use async/await with FileReader in for-loop function in google-apps-script web app? 比较两个数组,并仅获取与javascript / google-apps-script中的第1列数据匹配的数组 - Compare two arrays and obtain only one with data matching colum 1 in javascript/ google-apps-script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM