【发布时间】:2012-02-10 21:15:38
【问题描述】:
我使用 HTTPClient 和 Jsoup 来获取 url 并浏览页面。我有一个场景,单个链接有 3 或 4 个页面,由分页控制。 onSubmit 每个数字,发布操作并更改 url 并完成导航。我怎样才能从主页获得这个网址?
这就是我在 UI 中的分页方式
<div class="pagination">
<div class="label">Page: </div>
<div class="button selected" onclick="$('.page-position', $(this).closest('form')).attr('value', $(this).html()); $(this).closest('form').submit();">1</div>
<div class="button " onclick="$('.page-position', $(this).closest('form')).attr('value', $(this).html()); $(this).closest('form').submit();">2</div>
<div class="button " onclick="$('.page-position', $(this).closest('form')).attr('value', $(this).html()); $(this).closest('form').submit();">3</div>
<div class="button" onclick="$('.page-position', $(this).closest('form')).attr('value', 2);$(this).closest('form').submit();">Next</div>
</div>
【问题讨论】:
-
我们无法知道您的文档是如何分页的!投反对票。
标签: java httpclient jsoup