ju5t4fun
V2EX  ›  问与答

请问这种结构的的 HTML 怎么用 jsoup 解析?

  •  
  •   ju5t4fun · Feb 27, 2016 · 1824 views
    This topic created in 3753 days ago, the information mentioned may be changed or developed.

    有一个 table 结构是这样的,我想把图中日期部分提取出来,用 jsoup ,该怎么写?
    http://i11.tietuku.com/9150fd3d540ab5a2.png

    2 replies    2016-02-27 22:00:42 +08:00
    cheneydog
        1
    cheneydog  
       Feb 27, 2016   ❤️ 1
    Element eDate = doc.select("div.smallfont").first();
    String sDate = eDate.ownText();
    ju5t4fun
        2
    ju5t4fun  
    OP
       Feb 27, 2016
    @cheneydog 谢大神,果然解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3594 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 04:54 · PVG 12:54 · LAX 21:54 · JFK 00:54
    ♥ Do have faith in what you're doing.