我创建了一个新的谷歌网站。现在我需要通过html获取站点内的调用url。当使用window.location.href或document.URL时,它会返回url以外的其他内容(例如https://[1234]-sites-embeds.googleusercontent.com/s/embeds/code/inner-frame-minified.html?jsh=[] )
有没有办法得到原始的叫做url,例如https://sites.google.com/view/[name]/home?
谢谢!
发布于 2018-07-10 07:39:20
尽管自2016年11月推出以来,新的谷歌网站已经取得了很大的进步,但它在嵌入和框架方面仍然非常有限。唯一的选择是使用Classic Google站点,因为它允许您通过XML使用window.location.href
。XML在新站点中不再可用。
https://stackoverflow.com/questions/48608267
复制相似问题