简体   繁体   English

在Google Apps脚本中显示HTML格式的消息框?

[英]Display HTML-formated message box in Google Apps Script?

The Browser.msgBox("hello") method lets me display the text "hello" to the user in a message box, but if I put any HTML in there, for example "Hi there ", the user just sees the HTML tags. Browser.msgBox("hello")方法允许我在消息框中向用户显示文本“hello”,但如果我在其中放置任何HTML,例如“Hi there ”,则用户只能看到HTML标记。

Is there a way to display a popup with simple HTML to the user from withing google apps script? 有没有办法通过谷歌应用程序脚本向用户显示简单HTML的弹出窗口?

If you want to display a more complex UI, check out the new UIApp service google added: 如果您想显示更复杂的用户界面,请查看添加的新UIApp服务:

http://code.google.com/googleapps/appsscript/service_ui.html http://code.google.com/googleapps/appsscript/service_ui.html

The documentation is pretty sparse, so check out their examples: 文档很稀疏,所以看看他们的例子:

http://code.google.com/googleapps/appsscript/guide_user_interfaces.html http://code.google.com/googleapps/appsscript/guide_user_interfaces.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2025 STACKOOM.COM