1.
<pagenation onChange={ (pagenum)=>this.onpagenum(pagenum) } />
onpagenum(pagenum){
console.log(pagenum)
}
2.
<pagenation onChange={ this.onpagenum(pagenum) }
onpagenum = (pagenum)=>{
console.log(pagenum)
}
原文地址:https://www.cnblogs.com/luziluck/p/9327711.html
时间: 2024-10-17 09:35:15