一、取得工作表資料
function ex(){
let sheet = "工作表1";
let ss = SpreadsheetApp.getActiveSpreadsheet();//取得試算表
let ws = ss.getSheetByName(sheet);//取得工作表
let rowIndex = 1;
let colIndex = 1;
let range = ws.getRange(rowIndex,colIndex, 1 ,4);//範圍
let values = range.getValues();
let head = values[0];
console.log(head);
}