• XMLHttpRequest IHttpHandler二


            var introId=document.getElementById("txtIntroId").value;
            var request;
            try
            {  
                request = new ActiveXObject("Msxml2.XMLHTTP");
            }
            catch(e)
            {
               try
               {
                    request = new ActiveXObject("Microsoft.XMLHTTP");
               }
               catch(e)
               {
                    try
                    {
                    }
                    catch(e)
                    {
                        request = new XMLHttpRequest();
                    }
               }
            }
            request.open("post","../Handler.ashx",true);
            request.setRequestHeader("Content-Type","application/x-www-form-urlencoded;"); //设置编码
            request.send("userId="+introId);
            request.onreadystatechange=function()
            {
                if(request.readyState==4)
                {
                   if(request.responseText=="0")
                   {
                    document.getElementById('msg_IntroId').innerHTML="介绍人会员编号输入有误";
                   }
                   else
                   {
                    document.getElementById('msg_IntroId').innerHTML="介绍人会员编号可用";
                   }
                }
            }
  • 相关阅读:
    session和cookie
    数据库备份
    使用pip安装.whl文件时出现is not a supported wheel on this platform的解决办法
    multiprocessing模块
    threading模块
    python中多线程相关
    python中实现单例模式
    Flask-SQLAlchemy相关与Flask-Migrate相关
    redis模块
    Flask-Login中装饰器@login_manager.user_loader的作用及原理
  • 原文地址:https://www.cnblogs.com/htht66/p/1142688.html
Copyright © 2020-2023  润新知