[英]Display HTML-formated message box in Google Apps Script?
Browser.msgBox("hello")
方法允許我在消息框中向用戶顯示文本“hello”,但如果我在其中放置任何HTML,例如“Hi there ”,則用戶只能看到HTML標記。
有沒有辦法通過谷歌應用程序腳本向用戶顯示簡單HTML的彈出窗口?
如果您想顯示更復雜的用戶界面,請查看添加的新UIApp服務:
http://code.google.com/googleapps/appsscript/service_ui.html
文檔很稀疏,所以看看他們的例子:
http://code.google.com/googleapps/appsscript/guide_user_interfaces.html
您也可以直接使用UI.showModalDialog。
https://developers.google.com/apps-script/reference/base/ui#showModalDialog(Object,String)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.