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.
使用Jodd Jerry,如何获取节点本身的内容?(Jodd jerry 是 Java 实用程序)
像 jQuery:
$("selector").prop('outerHTML')
String contents = jerry.$("selector").get(0).getHtml(); Node node = jerry.$("selector").get(0); String html = node.getHtml()
节点有 getHmtl()