zoukankan      html  css  js  c++  java
  • 手机版分页

        $("#orderMessage").touchwipe({
            wipeDown: function () {//向下滑

                if (Number($("#pageIndex").val()) != 0) {//不是第一页
                    $("#pageIndex").val(Number($("#pageIndex").val()) - 1);

                    $(".verification span").text("加载数据成功!");
                    $(".verification").show(0).delay(500).hide(0);

                } else {

                    $(".verification span").text("已经第一页!");
                    $(".verification").show(0).delay(500).hide(0);
                }
                var pageIndex = $("#pageIndex").val();
                courierOrderExis(pageIndex);
            },
            wipeUp: function () {//向上滑

                if ((Number($("#pageIndex").val()) + 1) != $("#rowsCount").val()) {//不是最后一页
                    $("#pageIndex").val(Number($("#pageIndex").val()) + 1);

                    $(".verification span").text("加载数据成功!");
                    $(".verification").show(0).delay(500).hide(0);
                } else {

                    $(".verification span").text("已经最后一页!");
                    $(".verification").show(0).delay(500).hide(0);
                }
                var pageIndex = $("#pageIndex").val();
                courierOrderExis(pageIndex);
            },
        });

  • 相关阅读:
    LIB和 DLL区别
    C++ STL总结
    浅谈static和extern关系
    死锁及处理
    函数模板与模板函数
    Linux无法启动httpd_正在启动httpd
    httpd不允许远程连接问题
    虚拟机UUIDexist_更改UUID
    MySQL远程连接丢失问题
    Apache服务端允许跨域
  • 原文地址:https://www.cnblogs.com/wangtiantian/p/4987389.html
Copyright © 2011-2022 走看看