|
最近为了查看自己网店的宝贝使用指定的关键词搜索,能排在第几页,让我这个菜鸟伤透了脑筋,如果各位大神有好的思路可以给点建议,先谢过.
下面是具体的问题:在搜索出来的结果中,快速跳到后面的指定页数,比如跳到12页,跳转页面的那部分代码截取如下
<div id="mainsrp-pager"><div class="m-page g-clearfix">
<div class="wraper">
<div class="inner clearfix">
<ul class="items">
<li class="item prev">
<a class="J_Ajax num icon-tag" href="#" data-url="pager" data-key="s" data-value="44" trace="srp_bottom_pageup">
<span class="icon icon-btn-prev-2"></span>
<span>上一页</span>
</a>
</li>
<li class="item">
<a class="J_Ajax num" href="#" aria-label="第1页" data-url="pager" data-key="s" data-value="0" trace="srp_bottom_page1">1</a>
</li>
<li class="item">
<a class="J_Ajax num" href="#" aria-label="第2页" data-url="pager" data-key="s" data-value="44" trace="srp_bottom_page2">2</a>
</li>
<li class="item active">
<span class="num">3</span>
</li>
<li class="item">
<a class="J_Ajax num" href="#" aria-label="第4页" data-url="pager" data-key="s" data-value="132" trace="srp_bottom_page4">4</a>
</li>
<li class="item">
<a class="J_Ajax num" href="#" aria-label="第5页" data-url="pager" data-key="s" data-value="176" trace="srp_bottom_page5">5</a>
</li>
<li class="item dot">...</li>
<li class="item next">
<a class="J_Ajax num icon-tag" href="#" data-url="pager" data-key="s" data-value="132" trace="srp_bottom_pagedown">
<span>下一页</span>
<span class="icon icon-btn-next-2"></span>
</a>
</li>
</ul>
<div class="total">
共 100 页,
</div>
<div class="form">
<span class="text">到第</span>
<input class="input J_Input" type="number" value="4" min="1" max="100" aria-label="页码输入框">
<span class="text">页</span>
<span class="btn J_Submit" role="button" tabindex="0">确定</span>
</div>
</div>
</div>
</div>
</div> |
|