我試圖在Google Site的嵌入式應用程序腳本小工具及其URL參數,但呈現的小工具會忽略URL參數。它只能檢索Google網站網址參數。 請檢查here。將Google Apps腳本小工具URL參數嵌入Google網站時將被忽略
的小工具Google Apps腳本代碼
function doGet(e){
var app = UiApp.createApplication();
if(e.parameter.page == 'hello') app.add(helloPanel_());
else app.add(hiPanel_());
return app;
}
function helloPanel_(){
var app = UiApp.getActiveApplication();
return app.createLabel('You are at hello panel');
}
function hiPanel_(){
var app = UiApp.getActiveApplication();
return app.createLabel('You are at hi panel');
}
這用於早期的工作,直到谷歌Apps腳本小工具網址已重新命名一個新的結構。
我想知道這是預期的功能還是它的錯誤?如果有錯誤,我會報告問題跟蹤器。
您好,我希望你會幫助我..我卡在應用腳本..請檢查這個問題..http://stackoverflow.com/questions/35620893/how-to-use-angularjs-within-google-apps-script –