这不是有文档么?http://paginationjs.com/docs/... Function Provide a custom function, use done to return an array, can achieve above 2 ways. dataSource: function(done){ var result = []; for (var i = 1; i < 196; i++) { result.push(i); } done(result); } You can also send a request to get data, use done return asynchronous data. dataSource: function(done) { $.ajax({ type: 'GET', url: '/test.json', success: function(response) { done(response); } }); }
这不是有文档么?
http://paginationjs.com/docs/...
Provide a custom function, use done to return an array, can achieve above 2 ways.
You can also send a request to get data, use done return asynchronous data.