📜  teste google script - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:56.701000             🧑  作者: Mango

代码示例1
function sendEmails() {
  var ss=SpreadsheetApp.openById("ssid");
  var sheet=ss.getSheetByName('**********Your sheet name***********');
  var startRow=2; 
  var numRows=2;
  var dataRange=sheet.getRange(startRow, 1, numRows, 2);
  //changed to getDisplayValues
  var data=dataRange.getDisplayValues();
  //changed to for loop
  for (var i=0;i