How to pass a parameter to html?

前端 未结 5 1717
小鲜肉
小鲜肉 2020-11-28 13:01

I have a script that uses the file picker but I need to pass a specific parameter which is called userId and is kept as a global variable in the calling script.

5条回答
  •  无人及你
    2020-11-28 13:40

    This post provides the solution how to pass parameter to a templated html:

    html = HtmlService.createTemplateFromFile('page2');
    html.id = s1;
    

    Then in page 2 use the the tag to print out the id value;

提交回复
热议问题