Google Apps 脚本中带有 HtmlService 的原生 vs IFrame 沙箱

Native vs IFrame sandbox with HtmlService in Google Apps Script

我对脚本编写还很陌生,因此很想了解本机沙盒模式和 iFrame 沙盒模式之间的区别。

我很难理解为什么某些代码适用于一个而不适用于另一个(例如 jquery 自动完成仅在 Native 中工作而 Papaparse 仅在 iFrame 中工作)。

除了 this 文档外,我似乎找不到其他解释差异的地方。

在您 link 编辑的文章中有这个 link:https://developers.google.com/apps-script/guides/html/restrictions

它详细解释了每种模式的不同限制。

至于为什么一个库或另一个库在一种模式下中断,没有具体代码就无法回答。