Call functions from another “class” / file

前端 未结 3 1625
执笔经年
执笔经年 2021-02-05 18:03

Ok, I feel embarrassed that I wasn\'t able to figure this out on my own, but after a few wasted hours, I figured it would be easier to simply ask over here:

I have a bun

3条回答
  •  一整个雨季
    2021-02-05 18:52

    The following syntax allows you to call any function from within your Google Apps Script project, regardless of whether the function is defined in the same file that is calling it:

    myFunction();
    

    The following code is unnecessary and will throw errors:

    google.script.run.myFunction();
    

提交回复
热议问题