简体   繁体   English

google app脚本javascript

[英]google app script javascript

I am trying to use the wonderful Daff library by Paul Fitz in a script designed to bring some version control to a google sheet Im working on. 我正在尝试使用Paul Fitz出色的Daff ,该脚本旨在将一些版本控制带到正在使用的Google工作表中。 However I can't seem to include the javascript file in the script. 但是我似乎无法在脚本中包含javascript文件。 I've tried importing it as an html file with tags, and with an eval() call on an external source but both have produced either syntax errors or Undefined Exports errors. 我尝试将其导入为带有标签的html文件,并在外部源上调用eval(),但是两者均产生了语法错误或未定义导出错误。 Any idea what this means? 知道这意味着什么吗? with a little research I see that this means node.js isn't included? 通过一些研究,我发现这意味着不包括node.js? Anyway around this or way to include library in the script? 无论如何,还是在脚本中包含库? Here is external source. 是外部来源。

Fritz先生本人提供的答案包括删除文件“#!/ usr / bin / env节点”的第一行,然后将整个代码包装在init函数中,然后从外部调用!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM