jquery select element by xpath

后端 未结 3 1516
萌比男神i
萌比男神i 2020-11-28 08:17

I have an xpath selector. How can I get the elements matching that selector using jQuery?

I\'ve seen https://developer.mozilla.org/en/Introduction_to_using_XPath_in_

3条回答
  •  温柔的废话
    2020-11-28 09:14

    If you are debugging or similar - In chrome developer tools, you can simply use

    $x('/html/.//div[@id="text"]')
    

提交回复
热议问题