📄 5.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>完美Ajax类</title>
</head>
<body>
<textarea rows="7" cols="10" id="Events" style="width: 100%; height: 120px; word-break: break-all" tabindex="2"></textarea><br />
<Script Language="JavaScript" src="Ajax.js"></Script>
<Script Language="JavaScript">
<!--
// 错误回调事件函数
function EventError(strValue)
{
document.getElementById("Events").value = strValue;
}
// 状态回调事件函数
function EventState(strValue)
{
document.getElementById("Events").value = strValue;
}
// 完成回调事件函数
function EventDownloadEnd(strValue)
{
document.getElementById("Events").value = strValue;
}
var A = new Ajax();
// 指定错误事件
A.OnError = EventError;
// 指定状态事件
A.OnState = EventState;
// 指定完成事件
A.OnDownloadEnd = EventDownloadEnd;
A.method = "GET";
A.URL = "http://www.iunfair.com"
A.Sync = true;
A.send();
//-->
</Script>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -