zoukankan      html  css  js  c++  java
  • Query 传值的方式

     1
    $.get("/admin/ashx/wallet.ashx", { "username": username, "t": Math.random() }, function (obj) {},"json")
    2
     $.post("/admin/ashx/wallet.ashx", data + "&type=m", function (obj) {},"json")

    3 传到本页面的

     $.post("/Login/login2.aspx", { "username": txtuser, "userpwd":txtpwd ,"code":code},
            function () {
             
            },"json")

    在后台

      protected void Page_Load(object sender, EventArgs e)
            {
                if (Request.Headers["X-Requested-With"] != null
     && Request.Headers["X-Requested-With"].ToLower() == "XMLHttpRequest".ToLower())
                {
                    if (!string.IsNullOrEmpty(Request.Params["username"])
                        && !string.IsNullOrEmpty(Request.Params["userpwd"])
                        && !string.IsNullOrEmpty(Request.Params["code"]))
                    {
                        Login();
                    }
                }

            }

            void Login()
            {
                Response.Write("1");
               
            }

  • 相关阅读:
    Moving Price and Standard Price
    Partner function解析
    [ABAP] ABAP中定义和呼叫宏
    ABAP
    Words Learning~~(1-3)
    Words Learning~~(1-2)
    Words Learning~~(1-1)
    SQLSERVER如何查看索引缺失
    Material Stock manage T-code
    远程重启
  • 原文地址:https://www.cnblogs.com/cdaq/p/3557515.html
Copyright © 2011-2022 走看看