问题:当div的滚动条滑倒底部,执行函数
(ajax像服务器请求数据都写好了,就是不知道怎么触发。)

------解决方案--------------------
divObj.onscroll=function(){
if( this.scrollTop + this.clientHeight >= this.scrollHeight ){
alert( 'bottom')
}
}
divObj.onscroll=function(){
if( this.scrollTop + this.clientHeight >= this.scrollHeight ){
alert( 'bottom')
}
}