我想使此代码在Google表格中更有效。有人告诉我,以这种方式使用它会使我超出使用该服务的限额。我问是否有人知道使用此更好的例子。
function clearAll() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName('QUOTE SHEET');
var cell = sheet.getRange("A30:A38");
var cellBC = sheet.getRange("B30:b38");
var cellEG = sheet.getRange("E30:G38");
var cellB17_18 = sheet.getRange("B17:B18");
var trade = sheet.getRange("c17");
var numberoflines = sheet.getRange("b21");
var setup = sheet.getRange("d20");
var included = sheet.getRange("A23:A26");
var rateplan = sheet.getRange("g40");
var discount = sheet.getRange("D17");
cell.setValue("Select Phone Model ");
cellBC.setValue("");
cellEG.setValue("");
cellB17_18.setValue(0);
trade.setValue("");
numberoflines.setValue("");
setup.setValue("0");
included.setValue("");
rateplan.setValue("Select Plan");
discount.setValue("0%");
}