• <bdo id='VVB2L'></bdo><ul id='VVB2L'></ul>

      <legend id='VVB2L'><style id='VVB2L'><dir id='VVB2L'><q id='VVB2L'></q></dir></style></legend>
    1. <small id='VVB2L'></small><noframes id='VVB2L'>

      <i id='VVB2L'><tr id='VVB2L'><dt id='VVB2L'><q id='VVB2L'><span id='VVB2L'><b id='VVB2L'><form id='VVB2L'><ins id='VVB2L'></ins><ul id='VVB2L'></ul><sub id='VVB2L'></sub></form><legend id='VVB2L'></legend><bdo id='VVB2L'><pre id='VVB2L'><center id='VVB2L'></center></pre></bdo></b><th id='VVB2L'></th></span></q></dt></tr></i><div id='VVB2L'><tfoot id='VVB2L'></tfoot><dl id='VVB2L'><fieldset id='VVB2L'></fieldset></dl></div>

      1. <tfoot id='VVB2L'></tfoot>

        将 HTML 插入到 google 表格中的弹出窗口或注释中

        inserting HTML into pop-ups or notes in google sheets(将 HTML 插入到 google 表格中的弹出窗口或注释中)
          <legend id='p052j'><style id='p052j'><dir id='p052j'><q id='p052j'></q></dir></style></legend>
        • <tfoot id='p052j'></tfoot>
              • <bdo id='p052j'></bdo><ul id='p052j'></ul>
                <i id='p052j'><tr id='p052j'><dt id='p052j'><q id='p052j'><span id='p052j'><b id='p052j'><form id='p052j'><ins id='p052j'></ins><ul id='p052j'></ul><sub id='p052j'></sub></form><legend id='p052j'></legend><bdo id='p052j'><pre id='p052j'><center id='p052j'></center></pre></bdo></b><th id='p052j'></th></span></q></dt></tr></i><div id='p052j'><tfoot id='p052j'></tfoot><dl id='p052j'><fieldset id='p052j'></fieldset></dl></div>
                  <tbody id='p052j'></tbody>

              • <small id='p052j'></small><noframes id='p052j'>

                  本文介绍了将 HTML 插入到 google 表格中的弹出窗口或注释中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我喜欢使用弹出窗口来检索补充信息.

                  I love working with pop-ups to retrieve complementary information.

                  但正如您所见,我想将数据排列到某种表格中,以使其看起来更合适.
                  所以问题很简单:有没有办法在 Google Apps Script 中的 setNote() 中插入某种 html 或者可能会想出某种 DIY 弹出窗口?

                  But as you can see I would like to arrange the data into some sort of table to give it a more proper look.
                  So the question is really simple: is there any way to insert a sort of html into setNote() in Google Apps Script or may be come up with some sort of DIY pop-up?

                  我说的当然是原始的 Web 应用程序.

                  I am talking about the original web application of course.

                  推荐答案

                  简单对话框

                  此函数会将 A 列和 B 列中的所有内容放入无模式对话框中的表格中.这一切都在一个谷歌脚本中.

                  This function will put everything in Column A and B into a table in a modeless dialog. It's all in a google script.

                  function simpleDialog() {
                    var ss=SpreadsheetApp.getActive();
                    var sh=ss.getActiveSheet();
                    var rg=sh.getRange(2,1,sh.getLastRow()-1,2);
                    var vA=rg.getValues();
                    var html='<html><head><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"><script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script></head><body>';
                    html+='<style>th,td{border:1px solid black;}</style><table>';
                    html+=Utilities.formatString('<tr><th>%s</th><th>%s</th></tr>',"Asset","Rate");
                    vA.forEach(function(r,i){
                      html+=Utilities.formatString('<tr><td>%s</td><td>%s</td></tr>',r[0],r[1]);
                    });
                    html+='</table><br /><input type="button" value="Exit" onClick="google.script.host.close();" />';
                    html+='</body></html>';
                    var userInterface=HtmlService.createHtmlOutput(html);
                    SpreadsheetApp.getUi().showModelessDialog(userInterface, "Data Dialog");
                  }
                  

                  这篇关于将 HTML 插入到 google 表格中的弹出窗口或注释中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Fetch multiple links inside foreach loop(在 foreach 循环中获取多个链接)
                  Backbone Fetch Request is OPTIONS method(Backbone Fetch Request 是 OPTIONS 方法)
                  Fetch API leaks memory in Chrome(Fetch API 在 Chrome 中泄漏内存)
                  How can I download and save a file using the Fetch API? (Node.js)(如何使用 Fetch API 下载和保存文件?(Node.js))
                  Send blob data to node using fetch, multer, express(使用 fetch、multer、express 将 blob 数据发送到节点)
                  Sending a custom User-Agent string along with my headers (fetch)(发送自定义用户代理字符串以及我的标头(获取))
                    <tbody id='dQ6nO'></tbody>
                  <i id='dQ6nO'><tr id='dQ6nO'><dt id='dQ6nO'><q id='dQ6nO'><span id='dQ6nO'><b id='dQ6nO'><form id='dQ6nO'><ins id='dQ6nO'></ins><ul id='dQ6nO'></ul><sub id='dQ6nO'></sub></form><legend id='dQ6nO'></legend><bdo id='dQ6nO'><pre id='dQ6nO'><center id='dQ6nO'></center></pre></bdo></b><th id='dQ6nO'></th></span></q></dt></tr></i><div id='dQ6nO'><tfoot id='dQ6nO'></tfoot><dl id='dQ6nO'><fieldset id='dQ6nO'></fieldset></dl></div>

                1. <small id='dQ6nO'></small><noframes id='dQ6nO'>

                    <bdo id='dQ6nO'></bdo><ul id='dQ6nO'></ul>
                        1. <tfoot id='dQ6nO'></tfoot>

                          <legend id='dQ6nO'><style id='dQ6nO'><dir id='dQ6nO'><q id='dQ6nO'></q></dir></style></legend>