Google Apps Script 웹 앱에 약간의 문제가 있습니다. 다음 스크립트 샘플은 내부 문서에서 웹 앱에서 완벽하게 작동합니다. 그러나 브라우저에서 독립 실행 형 앱으로 오류 메시지가 계속 표시됩니다. "Browser.msgBox (prompt)"가 브라우저에서 작동하도록하려면 어떻게해야합니까?Google Apps Script 웹 앱에서 msgBox가 작동하는 문제
오류 메시지를보고 싶다면 here에 액세스 할 수 있습니다.
// Script-as-app template.
function doGet() {
var app = UiApp.createApplication();
var button = app.createButton('Click Me');
app.add(button);
var label = app.createLabel('The button was clicked.')
.setId('statusLabel')
.setVisible(false);
app.add(label);
var handler = app.createServerHandler('myClickHandler');
handler.addCallbackElement(label);
button.addClickHandler(handler);
return app;
}
function myClickHandler(e) {
var app = UiApp.getActiveApplication();
var label = app.getElementById('statusLabel');
label.setVisible(true);
Browser.msgBox("hello world");//THIS IS MY PROBLEM!!!
app.close();
return app;
}
링크가 종료되었습니다. –