<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          jQuery XPath

          聯(lián)合創(chuàng)作 · 2023-09-29 22:52

          jQuery XPath 是一個 jQuery 插件,實(shí)現(xiàn)了全功能的 XPath 2.0 查詢語言。

          示例代碼:

          $(document).xpath("*"); // Returns {Element} html (direct child of context item - document)
          $(document).xpath("http://head << //body"); // Returns {Boolean} true (head is preceding body)
          $(document).xpath("http://*[parent::html][last()]") // Returns {Element} body (last child of html)
          $(document.body).xpath("count(ancestor::node())"); // Returns {Number} 2 (2 ancestor nodes)
          $(document.body).xpath("preceding-sibling::element()"); // Returns {Element} head (prev sibling)
          $(document.documentElement).xpath("body | head"); // Returns {Element} head and body (ordered)
          $(document.documentElement).xpath("body, head"); // Returns {Element} body and head (not ordered)
          瀏覽 15
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  大鸡吧视频在线观看 | 91成人电影在线观看 | 国产成va人 | 黄色aa视频 | 亚欧大陆在线免费观看 |