0
我想写这个简单的用户界面应该显示一个消息与两个参数(名称,email2send)。但是,当我运行它,我得到的只有这个:谷歌应用脚本UI如何将消息插入VerticalPanel()?
变量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);
}
感谢您的帮助!