jQuery航路点不';UIWebView上的t触发器
我正在开发一个移动web应用程序,在UIWebView中遇到问题。如果用户平滑地向下滚动,则其效果非常理想,但一旦反弹效果过大,则不会触发航路点jQuery航路点不';UIWebView上的t触发器,jquery,uiwebview,Jquery,Uiwebview,我正在开发一个移动web应用程序,在UIWebView中遇到问题。如果用户平滑地向下滚动,则其效果非常理想,但一旦反弹效果过大,则不会触发航路点 $listfooter = $('#listfooter'); opts = { offset: function () { return $(window).height() * 5; } }; $listfooter.waypoint(function(event, direction) { console.log('fooba
$listfooter = $('#listfooter');
opts = {
offset: function () {
return $(window).height() * 5;
}
};
$listfooter.waypoint(function(event, direction)
{
console.log('foobar');
}, opts);
<body>
<div class="header">
<span>Title</span>
</div>
<div id="container">
<div id="listview">
....
</div>
<div id="listfooter">
<div id="spinner"></div>
</div><!-- /listfooter -->
</div>
</body>
#listfooter {
float:left;
height:34px;
width:100%;
}
$listfooter=$('#listfooter');
选项={
偏移量:函数(){
返回$(窗口).height()*5;
}
};
$listfooter.waypoint(功能(事件、方向)
{
console.log('foobar');
},opts);
标题
....
#列表页脚{
浮动:左;
高度:34px;
宽度:100%;
}