检测nano-content的滚动事件
var jqNanoObj = $('.nano');
jqNanoObj.find('.nano-content').on('scroll', function () {
checkSlideToBottom.check(jqNanoObj);
});
//检测滚动到底部
var checkSlideToBottom = {
timer: null,
isToBottom: false,
check:function (nanoWap) {
if(this.timer) {
clearTimeout(this.timer);
}
var this_ = this;
this.isShift = true;
this.timer = setTimeout(function () {
this_.isToBottom = Math.ceil(nanoWap[0].nanoscroller.sliderTop) >= nanoWap[0].nanoscroller.maxSliderTop;
}, 160);
}
};