久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='f5942'></tfoot>

    1. <legend id='f5942'><style id='f5942'><dir id='f5942'><q id='f5942'></q></dir></style></legend>
        <i id='f5942'><tr id='f5942'><dt id='f5942'><q id='f5942'><span id='f5942'><b id='f5942'><form id='f5942'><ins id='f5942'></ins><ul id='f5942'></ul><sub id='f5942'></sub></form><legend id='f5942'></legend><bdo id='f5942'><pre id='f5942'><center id='f5942'></center></pre></bdo></b><th id='f5942'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='f5942'><tfoot id='f5942'></tfoot><dl id='f5942'><fieldset id='f5942'></fieldset></dl></div>

        <small id='f5942'></small><noframes id='f5942'>

          <bdo id='f5942'></bdo><ul id='f5942'></ul>

        格式化此 JavaScript 行

        Formatting this JavaScript Line(格式化此 JavaScript 行)
          <tfoot id='dh5Fs'></tfoot>
            <bdo id='dh5Fs'></bdo><ul id='dh5Fs'></ul>

                <i id='dh5Fs'><tr id='dh5Fs'><dt id='dh5Fs'><q id='dh5Fs'><span id='dh5Fs'><b id='dh5Fs'><form id='dh5Fs'><ins id='dh5Fs'></ins><ul id='dh5Fs'></ul><sub id='dh5Fs'></sub></form><legend id='dh5Fs'></legend><bdo id='dh5Fs'><pre id='dh5Fs'><center id='dh5Fs'></center></pre></bdo></b><th id='dh5Fs'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='dh5Fs'><tfoot id='dh5Fs'></tfoot><dl id='dh5Fs'><fieldset id='dh5Fs'></fieldset></dl></div>
                <legend id='dh5Fs'><style id='dh5Fs'><dir id='dh5Fs'><q id='dh5Fs'></q></dir></style></legend>

                <small id='dh5Fs'></small><noframes id='dh5Fs'>

                    <tbody id='dh5Fs'></tbody>

                  本文介紹了格式化此 JavaScript 行的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在嘗試在彈出窗口中格式化這行代碼,但我遇到了 unterminated string literal 錯誤.

                  I am trying to format this line of code in my popup window, but i am facing unterminated string literal error.

                  誰能告訴我如何最好地格式化它.

                  Can somebody please tell me how best I could format this.

                  window.setTimeout("winId.document.write('<script src="../js/tiny_mce/tiny_mce.js" type="text/javascript"></script>
                  ')", 10);
                  

                  還要指出這行代碼在彈出窗口中是否可以正常工作?

                  Also point out if this particular line of code would work fine in the popup?

                  推薦答案

                  最好不要使用字符串,而是使用匿名函數(shù):

                  Best not to use a string, but an anonymous function instead:

                  window.setTimeout(function () {
                      winId.document.write(
                        '<script src="../js/tiny_mce/tiny_mce.js" type="text/javascript"></script>
                  '
                      );
                  }, 10);
                  

                  在 setTimeout 和 setInterval 中使用字符串與 eval() 密切相關(guān),應(yīng)僅在極少數(shù)情況下使用.請參閱 http://dev.opera.com/articles/view/高效的javascript/?page=2

                  Using strings in setTimeout and setInterval is closely related to eval(), and should only be used in rare cases. See http://dev.opera.com/articles/view/efficient-javascript/?page=2

                  還可能值得注意的是,document.write() 將無法在已解析的文檔上正常工作.不同的瀏覽器會給出不同的結(jié)果,大多數(shù)會清除內(nèi)容.另一種方法是使用 DOM 添加腳本:

                  It might also be worth noting that document.write() will not work correctly on an already parsed document. Different browsers will give different results, most will clear the contents. The alternative is to add the script using the DOM:

                  window.setTimeout(function () {
                      var winDoc = winId.document;
                      var sEl = winDoc.createElement("script");
                      sEl.src = "../js/tiny_mce/tiny_mce.js";
                      winDoc.getElementsByTagName("head")[0].appendChild(sEL);
                  }, 10);
                  

                  這篇關(guān)于格式化此 JavaScript 行的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運(yùn)算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標(biāo)志傳遞給 Gulp 以使其以不同的方式運(yùn)行任務(wù)?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運(yùn)行 Gulp 任務(wù))
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                  Detect FLASH plugin crashes(檢測 FLASH 插件崩潰)

                  <small id='TGxob'></small><noframes id='TGxob'>

                        <tbody id='TGxob'></tbody>

                        1. <i id='TGxob'><tr id='TGxob'><dt id='TGxob'><q id='TGxob'><span id='TGxob'><b id='TGxob'><form id='TGxob'><ins id='TGxob'></ins><ul id='TGxob'></ul><sub id='TGxob'></sub></form><legend id='TGxob'></legend><bdo id='TGxob'><pre id='TGxob'><center id='TGxob'></center></pre></bdo></b><th id='TGxob'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TGxob'><tfoot id='TGxob'></tfoot><dl id='TGxob'><fieldset id='TGxob'></fieldset></dl></div>
                          <tfoot id='TGxob'></tfoot>
                        2. <legend id='TGxob'><style id='TGxob'><dir id='TGxob'><q id='TGxob'></q></dir></style></legend>
                            <bdo id='TGxob'></bdo><ul id='TGxob'></ul>

                          • 主站蜘蛛池模板: 国产精品成人一区二区三区夜夜夜 | www.亚洲视频 | 黄色av观看| 婷婷成人在线 | 欧美v日韩| 久久久久亚洲精品 | 精品在线99 | 国产乱肥老妇国产一区二 | 精品国产一区久久 | 欧洲精品码一区二区三区免费看 | 狠狠亚洲 | 久久综合一区 | 亚洲色图婷婷 | 欧美日韩成人在线 | 日韩中文字幕久久 | 日韩免费三级 | 国产丝袜一区二区三区免费视频 | 精品欧美激情在线观看 | 91精品国产综合久久精品 | 国产一区二区三区久久 | 国色天香综合网 | 精品国产乱码久久久久久中文 | 中文字幕一区二区三区不卡 | 狠狠操天天操 | 羞羞网站在线免费观看 | 91久久久www播放日本观看 | 狠狠操狠狠干 | 国产视频久久 | 亚洲欧洲一区二区 | 在线观看中文字幕av | 国产美女精品视频 | 99久久国产综合精品麻豆 | 欧美一级在线观看 | 中文在线视频 | 81精品国产乱码久久久久久 | 欧美在线观看一区 | 国产日韩免费视频 | 91久久北条麻妃一区二区三区 | 亚洲免费观看视频网站 | 日韩av一区二区在线观看 | 日本成人一区二区 |