importing external javascript to google apps script

后端 未结 5 656
一向
一向 2020-12-01 02:31

I am trying to use Trello from a Google Spreadsheet (Google Docs) and am not sure how to import/reference/link the javascript files required to use their library. My only o

5条回答
  •  天涯浪人
    2020-12-01 02:55

    Based on the answer here by Cameron Roberts, you can use the eval() function on the appscript UrlFetchApp function.

    eval(UrlFetchApp.fetch('http://path.to/external/javascript.js').getContentText());
    

提交回复
热议问题