📄 pageajax.js
字号:
var AjaxType;
var TempCont;
var curpage;
function getAjaxType()
{
try
{
AjaxType = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try
{
AjaxType = new ActiveXObject("Microsoft.XMLHTTP");
} catch(oc){
AjaxType = null;
}
}
if(!AjaxType && typeof XMLHttpRequest != "undefined")
{
AjaxType = new AjaxTypeRequest();
}
}
function godown(url,Id,cur)
{
TempCont=document.getElementById(Id);
curpage=document.getElementById(cur);
getAjaxType();
AjaxType.onreadystatechange=getPageResult;
AjaxType.open("Get",url,true);
AjaxType.send(null);
}
function goup(url,Id,cur){
TempCont=document.getElementById(Id);
curpage=document.getElementById(cur);
getAjaxType();
AjaxType.onreadystatechange=getPageResult;
AjaxType.open("Get",url,true);
AjaxType.send(null);
}
function getPageResult()
{
if(AjaxType.readyState==4&&AjaxType.status==200)
{
result=AjaxType.responseText;
i=result.indexOf("<table");
curpage.innerHTML=result.substr(0,i)
TempCont.innerHTML=result.substr(i);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -