I go a tag name <div id= "d1">
. But I want to know the tag, which is before this tag( the older bro/sis of this tag .anyone have an idea?
I am using java.
OP found an answer:
I think i got my own answer. It's lastElementSibling() . I read it in this Jsoup API I hope this will help anyone like me now.
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.