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.
jsoup.connect和有什么区别jsoup.parse?似乎两者都做同样的工作Jsoup.connect(URL);并且Jsoup.parse(Html);.
jsoup.connect
jsoup.parse
Jsoup.connect(URL);
Jsoup.parse(Html);
正如您刚刚在问题中所写,connect()需要一个URL。 然后它发送一个 HTTP 请求并解析结果。
connect()
parse()接受一串原始 HTML,并且不涉及网络。
parse()