我想在單擊按鈕后獲取我的應用程序腳本的當前用戶。我知道你必須使用Session.getActiveUser().getEmail()但我不知道如何將 gs 文件調用到 html,因為它出錯并說“會話”未定義。謝謝!編輯:我已經使代碼工作。function clickker(){ google.script.run.testFunction(); console.log("testsomething") }(test function)function testFunction(){return console.log(Session.getActiveUser().getEmail());}控制臺說Net state changed from IDLE to BUSYNet state changed from BUSY to IDLE我該如何解決這個問題?謝謝!
單擊按鈕后獲取當前用戶
喵喔喔
2021-08-20 19:07:51