- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://monsterooo.github.io/reactjs-pagination/
- 软件文档: https://monsterooo.github.io/reactjs-pagination/
软件介绍
Reactjs-Pagination是一个React的本地分页组件,支持页码、跳转、和迷你模式。文档
安装
npm install --save reactjs-pagination
使用示例代码:
import React, { Component } from 'react';
import { Pagination }from 'reactjs-pagination';
class Test extends Component {
state = {
totalNumber: 326,
pageSize: 10,
currentPage: 31
};
constructor(props) {
super(props);
setTimeout(() => {
// this.setState({
// currentPage: 15
// });
this.setState({
totalNumber: 125
});
}, 3000);
}
handleChange = (idx) => {
console.log('页码改变 => ', idx);
}
render() {
const { totalNumber, pageSize, currentPage } = this.state;
return (
<div>
<Pagination
totalNumber={totalNumber}
pageSize={pageSize}
currentPage={currentPage}
middlePage={5}
onChange={this.handleChange}
showPages
showGo
/>
</div>
)
}
}
MySQL技术内幕
姜承尧 / 机械工业出版社 / 2013-5 / 79.00元
《MySQL技术内幕:InnoDB存储引擎(第2版)》由国内资深MySQL专家亲自执笔,国内外多位数据库专家联袂推荐。作为国内唯一一本关于InnoDB的专著,《MySQL技术内幕:InnoDB存储引擎(第2版)》的第1版广受好评,第2版不仅针对最新的MySQL 5.6对相关内容进行了全面的补充,还根据广大读者的反馈意见对第1版中存在的不足进行了完善,《MySQL技术内幕:InnoDB存储引擎(第2......一起来看看 《MySQL技术内幕》 这本书的介绍吧!
XML 在线格式化
在线 XML 格式化压缩工具
html转js在线工具
html转js在线工具
