示例代码:
HTML 代码:
Apps Script 代码:
function doGet() { var htmlOutput = HtmlService.createHtmlOutputFromFile('Index'); return htmlOutput.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL); }
示例代码:
Apps Script 代码:
function doGet() { var img = UrlFetchApp.fetch('https://drive.google.com/uc?id=IMAGE_ID').getBlob().getBytes(); var encoded = Utilities.base64Encode(img); var html = ''; return HtmlService.createHtmlOutput(html); }