📄 xmlhttp.js
字号:
// JScript 文件
var XmlHttp;
var Content = null;
function createXMLHttpRequest()
{
if(window.ActiveXObject)
{
XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
if (window.XMLHttpRequest)
{
XmlHttp = new XMLHttpRequest();
}
}
}
function doStart(strURL,strAction,bValue,eventStateChange,contentType,content)
{
createXMLHttpRequest();
XmlHttp.onreadystatechange = eventStateChange;
try
{
XmlHttp.open(strAction,strURL,bValue);
XmlHttp.setRequestHeader("Content-Type",contentType);
XmlHttp.send(content);
}
catch(e)
{
alert(e.message);
}
}
function handleStateChange()
{
if (XmlHttp.readyState == 4)
{
if (XmlHttp.status == 200)
{
processData();
}
}
}
//function processData()
//{
////
////在这里处理服务器返回数据
////
// alert("ok");
//}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -