问题
当你下拉时,我怎么能让它在哪里<div id="content">
,它会执行一个功能并在屏幕顶部显示一个 div,上面写着“下拉刷新”?
我知道 iScroll 会这样做,但它不适用于我正在尝试做的事情。它仅适用于 UL。
这是我的 HTML
<div id="pullDown">
<span class="pullDownIcon"></span><span class="pullDownLabel">Pull down to refresh...
</span>
</div>
<div id="content">
(There is a bunch of items that are loaded in via jquery and php, when you pull down to refresh, I want it to basically react that function.)
</div>