<script type="text/javascript">
    if(window.name){
// 重新整理獲取頁碼
}
    $('.M-page').pagination({
        pageCount:${totalPage},//獲取總頁數
jump:true,
        coping:true,
        homePage:'首頁',
        endPage:'末頁',
        prevContent:'上頁',
        nextContent:'下頁',
        callback:function(api){
            //回撥函式
var data = {
                currentPage: api.getCurrent()
            };
            $.getJSON('url',data,function(data,api){
                Initialization(data,api);
            });
        }
    },function(api){//對外掛進行初始化
var data = {
            currentPage: api.getCurrent()
        };
        $.getJSON('url',data,function(data,api){
            Initialization(data,api);
        });
    });

    function Initialization(data,api){
        //處理ajax資料寫入頁面
}
</script>
效果圖:
需要外掛的下載:http://download.csdn.net/download/qq_32497361/9967012