js滚动条滚动到底部触发事件

$("#contain").scroll(function(){
var $this =$(this),
viewH =$(this).height(),//可见高度
contentH =$(this).get(0).scrollHeight,//内容高度
scrollTop =$(this).scrollTop();//滚动高度
if(contentH - viewH - scrollTop <= 10) {
alert("ssss");
}
});


mysql 比较时间大小

where
unix_timestamp(license_effective_period) >= unix_timestamp('2000-09-12')

posted @ 2017-12-12 15:49  旺仔小虎屁  阅读(210)  评论(0编辑  收藏  举报