Interacting with editorsSpreadsheet APIEventsonChangeCurrentSheet本页总览onChangeCurrentSheetAsk a question The function called when the current sheet has changed. Parameters NameData typeDescriptionindexnumberThe index of the newly activated worksheet.