解决方案 »

  1.   

    为什么呢,你得解析获取Elements 然后text 吧。
      

  2.   

    比如说 我想获得这个页面上一个div对象 
    但是解析出来之后,内容里边竟然没有。但是我根据URL 在浏览器里 是可以看到的。
    我在debug时 看到doc.text所获得的内容,由于脚本内容太多,后边的内容竟然是省略号……
    不知道有没有大神遇到过
      

  3.   

    textpublic Element text(String text)
    Set the text of the body of this document. Any existing nodes within the body will be cleared.
    Overrides:
    text in class Element
    Parameters:
    text - unencoded text
    Returns:
    this document这个api是没有说大数据省略的,看看是否引用的document是否是jsoup的,是不是引用了jdk的
      

  4.   

    会不会是那个url网页上处理过了  多出来的就 省略号代替了。
      

  5.   

    我引用的是
    import org.jsoup.nodes.Document;