Google apps script 使用Google应用程序脚本web应用程序打开电子表格
我们正在将excel电子表格链接到google sheets。 要打开正确的工作表,我们需要使用webapp。 如何从web应用程序打开工作表 具体来说,我们需要以下代码来使用函数Google apps script 使用Google应用程序脚本web应用程序打开电子表格,google-apps-script,google-sheets,Google Apps Script,Google Sheets,我们正在将excel电子表格链接到google sheets。 要打开正确的工作表,我们需要使用webapp。 如何从web应用程序打开工作表 具体来说,我们需要以下代码来使用函数openSheet(sheeturl)打开电子表格。我们如何做到这一点 function test() { var sheet = SpreadsheetApp.openByUrl("https://docs.google.com/spreadsheets/d/1S3-u9fbS69JZntzLyCt9ynqeLp
openSheet(sheeturl)
打开电子表格。我们如何做到这一点
function test() {
var sheet = SpreadsheetApp.openByUrl("https://docs.google.com/spreadsheets/d/1S3-u9fbS69JZntzLyCt9ynqeLpQVpJo78dsP55OnV_E/edit?usp=sharing");
var sheeturl = sheet.getUrl();
openSheet(sheeturl);
}
你探索过吗?一旦你将工作表发布到web上,你会得到一个可以使用Google Apps脚本在HTML文件中使用的代码,然后使用
doGet()
函数将其显示在web应用上。我们真的想打开文档本身,我们需要在其中做大量的工作。我认为嵌入式版本并不具备所有功能。您应该看看,它向您展示了如何在iframe中显示文档。var ss=SpreadsheetApp.openById(“1S3-u9fbS69JZntzLyCt9ynqeLpQVpJo78dsP55OnV_E”)代码>在新的浏览器选项卡中,您希望在何处打开电子表格?