Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery航路点不';UIWebView上的t触发器_Jquery_Uiwebview - Fatal编程技术网

jQuery航路点不';UIWebView上的t触发器

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

我正在开发一个移动web应用程序,在UIWebView中遇到问题。如果用户平滑地向下滚动,则其效果非常理想,但一旦反弹效果过大,则不会触发航路点

$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%;
}