js
//初始化变量 var t1 = 0; var t2 = 0; var timer = null; // 定时器 // scroll监听 var scroll = mui('.mui-scroll-wrapper').scroll(); document.querySelector('.mui-scroll-wrapper' ).addEventListener('scroll', function (e ) { clearTimeout(timer); timer = setTimeout(isScrollEnd, 800); t1 = scroll.y; }); function isScrollEnd() { t2 = scroll.y; } //点击按钮进入列表详情页 mui("#pullrefresh").on("tap",".airportNameUnit",function(e){ //当t2=t1时 证明页面滚动停止了 if(t2==t1){ window.location.href='home.html" //跳转页面 } });