[英]Img Src function in popup with Google Apps Script
我想在我的彈出窗口中嵌入一張圖像,其中img src為 function。
我怎么能在谷歌應用程序腳本中繼續?
copyDoc.saveAndClose();
var url = "https://docs.google.com/document/d/"+ copyId +"";
var htmlString = "<base target=\"_blank\">" +
"<h2><a href=\"" + url + "\">Open Doc!</a></h2>";
var html = HtmlService.createHtmlOutput(htmlString);
SpreadsheetApp.getUi().showModalDialog(html, 'Very Good!')
是這樣的嗎?
var url = "https://docs.google.com/document/d/"+ copyId +"";
var htmlString = "<base target=\"_blank\">" +
"<h2><a href=\"" + url + "\">Open Doc!</a></h2>" +
"<p><img src='https://www.gstatic.com/script/apps_script_1x_48dp.png' /></p>";
var html = HtmlService.createHtmlOutput(htmlString);
SpreadsheetApp.getUi().showModalDialog(html, 'Very Good!')
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.