zoukankan      html  css  js  c++  java
  • XMLHttpRequest Angkor:

    <script type= "text/javascript "> var xmlHttp; function createXMLHttpRequest() { if (window.ActiveXObject) { xmlHttp = new ActiveXObject( "Microsoft.XMLHTTP "); } else if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } }
    function startRequest()

    { createXMLHttpRequest();

    xmlHttp.onreadystatechange = handleStateChange; xmlHttp.open( "GET ", "simpleResponse.xml ", true); xmlHttp.send(null); }
    function handleStateChange()

    { if(xmlHttp.readyState == 4)

    { if(xmlHttp.status == 200)

     { alert( "The server replied with: " + xmlHttp.responseText); }//else alert( "in: "+xmlHttp.status); }//else alert( "out: "+xmlHttp.readyState); } </script>

  • 相关阅读:
    UVa 106
    UVa 111
    UVa 105
    UVa 104
    UVa 103
    UVa 102
    UVa 101
    UVa 100
    就决定是你了!
    阿姆斯特朗回旋加速喷气式阿姆斯特朗炮
  • 原文地址:https://www.cnblogs.com/wujiakun/p/XMLHttpRequest.html
Copyright © 2011-2022 走看看