我正在尝试编写这个简单的 UI,它应该显示带有两个参数(名称、email2send)的消息。但是,当我运行它时,我只得到这个:
变量 msg 的内容不显示在面板中,仅显示面板标题。这样做的正确方法是什么?
// Show confirmation
function showMSG(name, email2Send) { // for ease of use I give the urls as parameters but you could define these urls in the function as well
var app = UiApp.createApplication().setHeight(60).setWidth(200);
app.setTitle("Msg send with sucess!");
var msg = "You request to " + email2Send + " a response from " + name;
app.add(app.createVerticalPanel().setTag(msg));
var doc = SpreadsheetApp.getActive();
doc.show(app);
}
提前感谢您的帮助!