jQuery Mobile滑下事件

时间:2015-09-21 11:52:10

标签: jquery mobile slide

查看jQuery Mobile我可以看到SlideLeft和SlideRight的事件。

我需要一个SlideDown事件。这个想法是在我的应用程序中,当您在屏幕上执行向下滑动操作(向下滑动手指)时,它会强制刷新显示的数据。

看看Slide事件,它似乎支持水平运动,但不支持垂直运动。

1 个答案:

答案 0 :(得分:0)

我认为你的意思是拉动刷新功能,而不是jQuery mobile中的设计实现。

您可以使用scrollz等特定插件。

代码:

        <!-- Content : data-scrollz supports 'simple' or 'pull'. Content is automatically resized to  the window height between header and footer. -->
        <div id="content" data-role="content" data-scrollz="pull">
                <!-- Scrollable content here. -->
        </div>

演示:https://dl.dropboxusercontent.com/u/26978903/scrollz/mobile.html

相关问题