<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ![](https://box.kancloud.cn/090cf5d15936145f941bae0717014c07_445x275.png) ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript" src="js/jquery-1.11.1.js"></script> <script> $(function () { alert($('div').length);//3 alert($('#div1').length);//$()獲取到的都是一個集合 1 }) </script> </head> <body> <div id="div1" class="box box2" miaov="妙味">aaaaaaa</div> <div></div> <div></div> </body> </html> ~~~ *** 利用length判斷是否有元素 ![](https://box.kancloud.cn/8ebd359ba99cf86cb518eec5c776713c_816x25.png) ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>通過length來糾錯,發現頁面中沒有的元素</title> <script type="text/javascript" src="js/jquery-1.11.1.js"></script> <script> $(function(){ var $span = $('#span1'); //這個span并不存在 console.log($span.length); //0 說明頁面中沒有$span這個元素 $span.html('bbbbb'); }) </script> </head> <body> <div id="div1">aaaaaaa</div> </body> </html> ~~~ *** #### 課堂練習--刪除指定顏色方塊 ![](https://box.kancloud.cn/792f7e9fed26813cb7d44f490a0673ca_518x182.png) ![](https://box.kancloud.cn/100fe3a679368948987e0b66e87ee955_495x169.png) ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> div{ width:100px; height:100px; float:left; margin:10px; border:1px solid #000; } </style> <script type="text/javascript" src="js/jquery-1.11.1.js"></script> <script> $(function () { var color = ''; $('span').click(function () { color = $(this).html(); }); $('div').click(function () { $(this).css('background',color); }); $('input').click(function () { $('div[style*=red]').css('background',''); }); }) </script> </head> <body> <span>red</span> <span>yellow</span> <span>green</span> <span>blue</span> <br> <input type="button" value="清空紅色"> <br> <div></div> <div></div> <div></div> <div></div> </body> </html> ~~~
                  <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>

                              哎呀哎呀视频在线观看