简体   繁体   中英

Google-apps-script SyntaxError

I have a problem with the doGet () function.If it always runs error SyntaxError: Unexpected token ')' (line 12, file "Code")

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM