Problem with self-invoking functions calling other functions
问题 In my index.html file (before closing body tag), I want a function to self-invoke itself when the page is loaded. However, I am having issues when the function (here, setUp) is defined in an external file. If I copy-paste the setUp function in Index.html then everything works as expected. I am new to JS: am I incorrectly linking script file? Thanks! Index.html <script src="Code.gs"> window.onload=setUp; </script> Code.gs function setUp() { dateHelper_(); } 回答1: You want to run Google Apps