lihongxun945/jquery-weui

在微信开发者工具上调试代码 jquery weui 下拉刷新不触发 在Google上就能正常触发,请问这是为什么?

suddenlyJoe opened this issue · 0 comments

下拉刷新
释放刷新
正在刷新
<script src="../../static/lib/jquery.min.js" th:src="@{/lib/jquery.min.js}"></script> <script src="../../static/lib/fastclick.js" th:src="@{/lib/fastclick.js}"></script> <script src="../../static/js/jquery-weui.min.js" th:src="@{/js/jquery-weui.min.js}"></script> <script> $(function(){ FastClick.attach(document.body); //下拉刷新 $(document.body).pullToRefresh().on("pull-to-refresh", function () { if (loading) return; getData(1, "html"); $(document.body).pullToRefreshDone(); // 重置下拉刷新 }); }) </script>