当我的HTML服务(Google Apps脚本)中单击“提交”按钮时,我运行以下代码:
window.onload = function(){
df <- structure(list(
ID = structure(c(1L, 1L, 1L, 2L), .Label = c("a1", "a2"), class = "factor"),
Group = structure(c(1L, 1L, 2L, 2L), .Label = c("abc", "def"), class = "factor"),
Score1 = c(10L, 0L, 0L, 5L), Score2 = c(0L, 0L, 5L, 10L),
Score3 = c(0L, 11L, 2L, 11L)),
class = "data.frame", row.names = c(NA, -4L))
它很好用,只是一旦功能运行后侧边栏不会关闭。我以为是因为google.script.host.close()会发生这种情况,但我想我把它放在错误的地方了……谁能看到需要修改的地方吗?