【发布时间】:2021-06-14 15:23:39
【问题描述】:
我想使用 Google Apps 脚本执行以下操作:
- 在具有多个 URL 的 Google 表格中搜索特定单元格
- 拆分 URL 并将它们作为单独的链接获取,以避免在工作表中使用拆分功能(观看 image
- 使用标签将每个 URL 附加到 Google 文档中
我以前做过,但我只能在一个数组中获取 URL,不能分开(观看 image 1 和 image 2)
for (var i=0; i<row[rownumber].length; i++){
if (row[rownumber].includes(","))
img=row[rownumber].split(",");
body.replaceText('{{TagName}}',img);
}
这里有 Google 表格中的示例,以便应用上述步骤 (link)。任何帮助,将不胜感激。谢谢!
【问题讨论】:
标签: google-apps-script google-sheets google-docs