Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试获取给定名称的最顶层节点,即未嵌套在该名称的其他节点中。
我正在尝试使用以下方法来做到这一点,但这是行不通的:
$(xmldoc).find("idea:not(:parent > idea)")