Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我刚刚发布了一个 Google 表格插件。
它显示了第一个工作表的菜单项。但是,一旦我在该工作表上运行某些功能,它只会在该工作表上显示菜单项,而不是在我的驱动器中显示其他工作表。
我认为插件脚本以某种方式绑定到第一张纸。
任何想法为什么会发生?
所以这个插件是公开发布的。我想到了。这是因为全局变量声明中的错误 - activeSpreadsheet = SpreadsheetApp.getActiveSreadsheet();
您的附加组件有一个与之关联的 google 控制台项目。控制台允许访问错误报告。我在控制台上发现了这个错误。我纠正了错误并发布了它,现在它工作正常。