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);
            },
        });

  • 相关阅读:
    开发day7
    开发day6
    开发day5
    开发day4
    开发day3
    开发day2
    开发day1
    假期学习2/8
    什么是栈帧
    JDK、JRE和JVM到底是什么
  • 原文地址:https://www.cnblogs.com/wangtiantian/p/4987389.html
Copyright © 2011-2022 走看看