Javascript 在Android+;音差

Javascript 在Android+;音差,javascript,android,jquery,css,cordova,Javascript,Android,Jquery,Css,Cordova,我正在开发一个应用程序,该应用程序使用JQuery Mobile和PhoneGap API for android 我的应用程序有一个新闻提要页面,一次显示10个新闻提要,然后在一个按钮下面显示下一个10个新闻提要,它工作正常,并显示其他10个,直到显示所有新闻提要 现在我想让它显示下10篇文章,用户不点击按钮,只需向下滚动并加载其他10篇文章(这是Android操作系统的应用程序) 有什么插件或其他我可以使用的东西吗 我的应用程序结构类似(在此结构中为一个完整的帖子显示) 使用pull刷新iS

我正在开发一个应用程序,该应用程序使用JQuery Mobile和PhoneGap API for android 我的应用程序有一个新闻提要页面,一次显示10个新闻提要,然后在一个按钮下面显示下一个10个新闻提要,它工作正常,并显示其他10个,直到显示所有新闻提要 现在我想让它显示下10篇文章,用户不点击按钮,只需向下滚动并加载其他10篇文章(这是Android操作系统的应用程序)

有什么插件或其他我可以使用的东西吗 我的应用程序结构类似(在此结构中为一个完整的帖子显示)


使用pull刷新iScroll


例如:


我是按惯例做的

$(window).scroll(function (e)
{
if( ( $.mobile.activePage[0].id == 'PageIdInWhichYouWantToAppyThis' )
{
    if ( $(document).height() == $(window).scrollTop() + $(window).height() )
    {
        //here you can auto trigger that link which previously Waiting User Click
    }
}
});
这是基本的根据演示可能我需要小的修改,但不是大的
谢谢

这也是《div》的作品吗??这个演示是为“ul”做的,我已经试过了,但我有问题。还有其他的吗?不,你不明白我的意思。你们应该仔细阅读这份文件。参见上面的代码示例。
    <div id="wrapper">
        <div id="scroller">
            //append anything when pull up: div, ul,...
            <ul id="items">
                //Append items when pull up.
            </ul>
            <div>scroll up to add more item</div>
        </div>
    </div>
    <div id="wrapper">
        <ul id="items">
            //Append items when pull up.
        </ul>
    </div>
myScroll = new iScroll('wrapper', {
    onScrollMove:function(){
        //do something when scroll move(identify position of scroll)
    },
    onScrollEnd:function(){
        //do something when scroll end(add more items)
    }
});
$(window).scroll(function (e)
{
if( ( $.mobile.activePage[0].id == 'PageIdInWhichYouWantToAppyThis' )
{
    if ( $(document).height() == $(window).scrollTop() + $(window).height() )
    {
        //here you can auto trigger that link which previously Waiting User Click
    }
}
});