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

  • 相关阅读:
    Python多线程笔记(三),queue模块
    Python多线程笔记(二)
    Python多线程笔记(一)
    Python3对时间模块的操作
    解决 ImportError: No module named 'pip._internal'问题
    Python字符串的操作
    Python 的AES加密与解密
    第十一周学习进度报告
    各组建议
    用户场景分析
  • 原文地址:https://www.cnblogs.com/cdaq/p/3557515.html
Copyright © 2011-2022 走看看