分页实现
Posted guo970910
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了分页实现相关的知识,希望对你有一定的参考价值。
分页的实现:
aspx::::::
<body>
<div class="mui-content">
<ul class="mui-table-view mui-table-view-striped mui-table-view-condensed" id="readdata">
</ul>
</div>
<div class="mui-content-padded">
<ul class="mui-pager">
<li class="mui-previous">
<a href="#" onclick="shangyiye()">上一页
</a>
</li>
<li class="mui-next" onclick="xiayiye()">
<a href="#">下一页
</a>
</li>
</ul>
</div>
</body>
</html>
<script src="../js/jquery-1.8.3.js"></script>
<script src="../mobile_web/Interface_WeChat/WeChatConnection.js"></script>
<script type="text/javascript">
var page = 1;
get_jigou_chaoshi_data_center(page.toString(), "0", ‘<%=this.orgid%>‘);
function shangyiye() {
if (page <= 0) {
page = 2;
}
var val = page -= 1;
get_jigou_chaoshi_data_center(val.toString(), "0", ‘<%=this.orgid%>‘);
}
function xiayiye() {
var val = page += 1;
get_jigou_chaoshi_data_center(val.toString(), "0", ‘<%=this.orgid%>‘);
}
</script>
以上是关于分页实现的主要内容,如果未能解决你的问题,请参考以下文章