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();
}
It's very likely that the problem is in the file page.html
.
Related
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.