⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crossbrowserhttprequestexample.htm

📁 这是javascript高级程序设计的源码
💻 HTM
字号:
<html>
    <head>
        <title>Cross-Browser HTTP Request Example</title>
        <script type="text/javascript" src="http.js"></script>
        <script type="text/javascript">               
                
                function getServerInfo() {
                    var sURL = "http://localhost/example.txt";
                    Http.get(sURL, function (sData) {
                        alert("Data from server: " + sData);
                    });

                }

        </script>
    </head>
    <body>
        <p>Click the button to make a GET request. This example will only work
        on a Web server. You must replace <code>http://localhost/example.txt</code>
        with the appropriate location of a file on your server.</p>
        
        <input type="button" onclick="getServerInfo()" value="Get Server info" />
    </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -