我想要Javascript正则表达式从谷歌床单URL中提取电子表格ID和床单ID。 sheets.google.com电子表格的网址如下所示:https://docs.google.com/spreadsheets/d/1QOKbrUz7AWUwT-hNfWd1Pxf__QObYCZ1rD2CKMjpnGw/edit#gid=0。 This Link描述了用于提取电子表格ID和图纸ID的正则表达式
你好,我尝试检测我的谷歌文档中的特定字符串,并将其设置为“粗体”。 香港专业教育学院尝试这样: function bold() {
var body = DocumentApp.getActiveDocument().getBody();
var foundElement = body.findText("Câbles");
while (foundElement != null) {
var header = DocumentApp.getActiveDocument().getHeader();
var headerfirst = header.getParent().getChild(2).asHeaderSection();
var template = DocumentApp.openByUrl("url here").getHeader();
谷歌文档注释: 我的目标是添加使用谷歌Apps脚本如上面图片中看到特定的文本注释。现在我有这个工作代码,但它只为整个文档添加了一般性评论。 function myFunction() {
var fileId = '{FILE_ID}';
var resource = {'content': 'comment body text'};
Drive.Comments.i