<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                [TOC] ## 1.添加內容 ### 1-1append 從后添加 //prepend 從前添加 ``` <p>你好</p> <button type="button" id="btn1">后添加</button> <button type="button" id="btn2">前添加</button> <script> $(document).ready(function(){ $("#btn1").click(function(){ $("p").append("---我是從后添加的內容") //$("p").after("---我是從后添加的內容") }) $("#btn2").click(function(){ $("p").prepend("我是從前添加的內容---") //$("p").before("我是從前添加的內容---") }) }) </script> ``` ![](https://box.kancloud.cn/05b00466cb85d6397514bb0939c1da06_226x148.PNG) ![](https://box.kancloud.cn/0a0b70560337330dd6ffaaf376737562_547x272.PNG) ### 1-2 after和before添加內容 ![](https://box.kancloud.cn/6d8126cb0ef97b6c6b672cd42375cfe2_465x241.PNG) ## 2.添加元素 三種方法 > var text1 = "標簽內容" > var text2 = $("標簽").text("內容"); var text3 = document.createElement("p"); text3.innerHTML = "內容"; ``` <p>你好</p> <button id="btn">添加元素</button> <script> $(document).ready(function () { $("#btn").click(function () { var text1 = "<p>直接標簽內容一起添加</p>"; var text2 = $("<p></p>").text("標簽內容分開添加"); var text3 = document.createElement("p"); text3.innerHTML = "創建標簽,再innerHTML添加內容"; $("body").append(text1, text2, text3); }) }) </script> ``` ![](https://box.kancloud.cn/e0bdcb3f08b828e7fdb6618fc3baca5e_359x221.PNG) > ![](https://box.kancloud.cn/692ebfafcff6dabdc58758cc9455bb73_366x296.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看