Apps脚本.getActivePage()仅返回"home"页 [英] Apps Script .getActivePage() only returning "home" page

查看:99
本文介绍了Apps脚本.getActivePage()仅返回"home"页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

还有其他人在使用SiteApps.getActivePage()时遇到麻烦吗?对我来说,它只是返回主页,而不是活动页面.

Is anyone else having trouble with SiteApps.getActivePage()? for me it's only returning the home page, not the active page.

推荐答案

每当您在页面上设置HtmlContent(),原始嵌入的HTML代码被修改且应用停止正常运行时,就会发生此问题.然后,只要您对其进行了ActiveActiveSite()操作,它将返回网站的主页.

The problem occurs whenever you setHtmlContent() on the page, the original embedding HTML code gets modified and the app stops behaving normally. It then returns the home page of the site whenever you getActiveSite() it...

这真的很烦人,我对Google花了多长时间来解决这个问题感到非常失望...

It's really annoying and I'm quite disappointed about how long google is taking to fix this...

这篇关于Apps脚本.getActivePage()仅返回"home"页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆