?? crossbrowserhttprequestexample.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 + -