npm i j-simple-pagination --save
npm install
npm run dev
<div id="time"></div>
<script type="text/javascript">
var Pagination = new window.jSimplePagination('#time', {
pageSize: pageSize,
dataTotal: dataTotal,
pageIndex: pageIndex,
showCount: showCount,
onChange: function(data) {
console.log(data);
log.innerHTML = '<div>' + JSON.stringify(data) + '</div>';
}
});
</script>
0.0.1 add
0.0.2 fix:bug change:字段名称
0.0.3 fix:bug
0.0.4 fix:bug