请问怎么接收分页 page 的函数?
<script type="text/javascript">$('body').on('click','.post-main',function () {
if (this.getAttribute ('data-type') != 'audio') {
location.href=this.getAttribute ('data-url');
}
});
$('.pages').hover(function () {
$('.pages ul').stop().show('fast');
},function () {
$('.pages ul').stop().hide('fast');
});
var totalPages = 3;
var pageSize = 10;
var postOffset = pageSize;
if (totalPages) {
$('#load-more').click(function () {
if ((postOffset/pageSize) >= totalPages) {
this.className = 'nopages';
this.innerHTML='The End';
$(this).unbind('click');
return false;
}
var _this = this;
_this.className = 'loading';
var url = 'Ajax_getpiclist.asp';
$.get(url, {
_posts: {
limit: pageSize,
offset: postOffset
}
}, function(data) {
postOffset+=pageSize;
$('#main').append(data);
_this.className = 'icon load-more';
if ((postOffset/pageSize) >= totalPages) {
_this.className = 'nopages';
_this.innerHTML='The End';
$(_this).unbind('click');
}
});
})
}
</script>
请问怎么在 Ajax_getpiclist.asp 页面接收分页page的函数?