zoukankan      html  css  js  c++  java
  • 点击的页面跟定义的变量

    static int index = 1;
    static int size = 3;
    static int count = 0;//总条数
    static int page = 0;//总页数
    string Where = "";//条件
    static string orderCol = " a.ID asc";//排序

    /// <summary>
    /// 首页
    /// </summary>
    /// <returns></returns>
    public ActionResult First()
    {
    XiaoQu();
    DongHao();
    HuXing();
    ZhuangTai();
    List<UserInfoModel> list = ShowPage();
    return View("Index", list);
    }
    /// <summary>
    /// 上一页
    /// </summary>
    /// <returns></returns>
    public ActionResult ShangYiYe()
    {
    XiaoQu();
    DongHao();
    HuXing();
    ZhuangTai();
    if (index > 1)
    {
    index--;
    }
    List<UserInfoModel> list = ShowPage();
    return View("Index", list);
    }
    /// <summary>
    ///// 下一页
    /// </summary>
    /// <returns></returns>
    public ActionResult Next()
    {
    XiaoQu();
    DongHao();
    HuXing();
    ZhuangTai();
    if (index < page) //当前页小于总页数
    {
    index++;
    }
    List<UserInfoModel> list = ShowPage();
    return View("Index", list);
    }
    /// <summary>
    /// 尾页
    /// </summary>
    /// <returns></returns>
    public ActionResult WeiYe()
    {
    XiaoQu();
    DongHao();
    HuXing();
    ZhuangTai();
    List<UserInfoModel> list = ShowPage();
    return View("Index", list);
    }

  • 相关阅读:
    前端安全【面试】
    防xss攻击
    前端工程化
    前端项目构建——运维
    react入门
    OpenGL Windows 窗口程序环境搭建
    Django 列的自定义显示
    设计模式之 SOA面向服务的体系
    设计模式之Builder建造者模式 代码初见
    设计模式之Factory工厂模式的好处
  • 原文地址:https://www.cnblogs.com/MenBe/p/9521728.html
Copyright © 2011-2022 走看看