有没有办法使用 jquery 获取当前文本选择的 XPath 查询?
感谢您的帮助,
最佳答案
不,没有内置方法可以使用 jQuery 执行此操作。 然而,还有其他 javascript 选项,请参见此处:How to calculate the XPath position of an element using Javascript?
关于javascript - jquery : create xpath of the current text selection,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14854936/