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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 1. index方法 1. jquery的index()方法 搜索匹配的元素,并返回相應元素的索引值,從0開始計數 2. 如果不給 .index() 方法傳遞參數,那么返回值就是這個jQuery對象集合中第一個元素相對于其同輩元素的位置。**(不傳就一直返回1)** 3. 如果找不到匹配的元素,則返回-1。 **我們用index方法來找元素的順序索引** ### 1.1 實例 ![](https://box.kancloud.cn/36eefde786fedc14572855939dd5f9c3_782x523.png) ``` $(".containerBtn").on("click", ".reviewImg", function () { console.log("查看第" + $(this).index()); //永遠返回1,因為他的同輩元素有一個在它前邊 console.log("查看第" + $(".reviewImg").index(this)); //首先獲取.reviewImg元素集合,在這個集合中獲取當前節點的次序 layer.open({ type: 2, title: '圖片預覽', area: ['80%', '80%'], //寬高 fix: false, //不固定 maxmin: true, content: Aexit.ctxPath + '/web_uploader/review/' }); ``` ![](https://box.kancloud.cn/f9abe42dc4b1e761a4533f6460a14e0c_1483x643.png) ## 2. eq() 方法: 1. eq() 方法返回帶有被選元素的指定索引號的元素。 2. 索引號從 0 開頭,所以第一個元素的索引號是 0(不是 1)。 eq() 方法: **我們用eq()方法來找索引對應的元素,并操作元素** ![](https://box.kancloud.cn/f5e50d4e5408b26661fdf71edb88a536_348x230.png)![](https://box.kancloud.cn/2050484097c086d1973559d64e613470_299x202.png) 所以jquery的eq和index的方法是不同都得方向
                  <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>

                              哎呀哎呀视频在线观看