我尝试在 SpreadsheetApp 之后重新输入时间段,但它似乎对我不起作用。我像这样将变量链接在一起:
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(),
open_log = spreadsheet.getSheetByName('OPEN_LOG'),
closed_log = spreadsheet.getSheetByName('CLOSED_LOG'),
invoiced_log = spreadsheet.getSheetByName('INVOICED_LOG');
一旦我将代码更改为:
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
var open_log = spreadsheet.getSheetByName('OPEN_LOG');
var closed_log = spreadsheet.getSheetByName('CLOSED_LOG');
var invoiced_log = spreadsheet.getSheetByName('INVOICED_LOG');
内容辅助再次开始工作。我不是 100% 肯定这是解决方法,这一次似乎对我有用。试一试……总比拔头发好。