I have <form data-v-4db188a6="">
tag. I need find only form tag contains 'data' in the attribute name not attribute value! .//form[contains(@prop, 'data')]
not work. Is it even possible?
简短的xpath表达式:
//form/@*[contains(name(), 'data')]
是的,这是可能的:
//form[attribute::*[contains(local-name(), 'data')]]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.