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.
对于一个节点
<a:cs id='x'>
如果当前节点是id(属性),如何获取Element节点;IE; 一个:cs?
只需使用 XPath,例如parent::tagname. 在您的情况下,这将是:parent::a:cs.
parent::tagname
parent::a:cs
请注意,这仅在a正确声明为绑定标记库时才有效
a