Web/javascript/Register.js

(开头部分) 12KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/// <reference path="JSintellisense/jquery-1.3.2-vsdoc2.js" />

String.prototype.trim = function () {
    return this.replace(/(\s*$)|(^\s*)/g, '');
} 

function $I(id)
{
    return document.getElementById(id);
}

function $N(name)
{
    return document.getElementsByName(name);
}

var net=new Object();

//请求状态属性
net.READY_STATE_UNINITIALIZED=0;    //未初始化
net.READY_STATE_LOADING=1;          //正在加载
net.READY_STATE_LOADED=2;           //已加载
net.READY_STATE_INTERACTIVE=3;      //交互中
net.READY_STATE_COMPLETE=4;         //完成

net.ContentLoader=function(url,params,method,onload,onerror)   
{
    this.req=null;
    this.onload=onload;
    this.onerror=(onerror) ? onerror : this.defaultError;
    this.loadXMLDoc(url,method,params);
}

net.ContentLoader.prototype.loadXMLDoc=function(url,method,params)
{
    if (!method)
    {
        method="GET";
    }
    if (method=="POST")
    {
        contentType='application/x-www-form-urlencoded;charset=gb2312';
    }
    if (window.XMLHttpRequest)
    {
        this.req=new XMLHttpRequest();
    }
    else if (window.ActiveXObject)
    {
        try
        {
            this.req = new ActiveXObject('MSXML2.XMLHTTP');
        }
        catch(e)
        {
            try
            {
                this.req = new ActiveXObject('Microsoft.XMLHTTP');
            }
            catch(e)
后面还有 458 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。