求助jquery mobile 框架中跳出再跳回$(window).scroll失效
jquery吧
全部回复
仅看楼主
level 1
ty52665266 楼主
求助各位大神,在jquery mobile 框架中,列表页有滚屏加载js,但是跳到详细页再跳回,js失效了!求助大家!滚屏加载代码如下:
$(document).ready(function() {
$(window).bind('scroll',function(event) {
var wh1=$(window).height()
var wh2=$(document).height()
alert(wh1+"+"+wh2);
if($(document).height() > $(window).height())
{
if($(window).scrollTop() == $(document).height() - $(window).height()){
alert("123");
//加载内容
}
}
});
});
2015年08月26日 08点08分 1
level 3
专注于解决你的IT难题!加入群454269563[滑稽]
2015年08月26日 08点08分 2
1