• html请求_ashx.cs页码Example


      

    //1创建对象 XMLHttpRequest   

          var request = createXHR();

            function createXHR() {//判断浏览器兼容             var xhr;    

             if (XMLHttpRequest) {      

               xhr = new XMLHttpRequest();   

              } else {      

               xhr = new ActiveXObject("Microsoft.XMLHTTP");   

              }         

        return xhr;        

    }    

         function send() {

                document.getElementById("d").innerHTML = "加载中...";       

          //2初始化         

        request.open("get", "02_getTime.ashx?_=" + Math.random(), true);     

            //3注册事件       

          request.onreadystatechange = function () {

                    if (request.readyState == 4) {

                        if (request.status == 200) {    

                         var res = request.responseText;     

                        document.getElementById("d").innerHTML = res;    

                     } else {                

             document.getElementById("d").innerHTML = "服务器内部错误";       

                  }

                    }     

            }    

             //4.发送请求     

            request.send();       

      }

  • 相关阅读:
    IDA .edata .rdata .idata .text segments
    How to detect the types of executable files
    Dynamic-Link Library Redirection
    J-Link Version
    PE文件结构部分解析以及输入的定位
    Delphi : Analyze PE file headers?
    How to tell if a file is an EXE or a DLL?
    PE Header and Export Table for Delphi
    NXP ARM Vector Table CheckSum
    反接保护电路 Reverse Voltage Protection
  • 原文地址:https://www.cnblogs.com/nqsan/p/3373823.html
Copyright © 2020-2023  润新知