`loadmore(e) {
let element = e.target;
try {
e.stopPropagation();
} catch (ex) {
}
let clientHeight = element.clientHeight; //可视区域高度
let scrollTop = element.scrollTop; //滚动条滚动高度
let scrollHeight = element.scrollHeight; //滚动内容高度
if (scrollTop > 0 && (clientHeight + scrollTop) >= scrollHeight) { //如果滚动到底部
this.getlist('more');
}
}
`
<div className="content_all" style={{maxHeight: `${divHeight}px`, height: `${divHeight}px`, overflow: 'auto'}}
onScroll={this.loadmore}>
</div>