Web/js/ProductCollection.js

(开头部分) 3KB

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


var xmlHttp;
var Agaurl;
function create() {

    if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }

}
function AddProductCollection(ProductId) {
    //    debugger
    create();
    Agaurl = '/Ajax/Ajax.aspx?Type=ProductCollection&ProductId=' + ProductId,
       xmlHttp.open("GET", Agaurl, true);
    xmlHttp.onreadystatechange = Agabckname;
    xmlHttp.setRequestHeader("If-Modified-Since", "0");
    xmlHttp.send(null);

}
function Agabckname() {
    if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
        var msg = xmlHttp.responseText.toString();
        if (msg == "1") {
            alert("收藏成功");
        }
        if (msg == "0") {

        }
        if (msg == "-1") {
            alert("该信息,您已收藏过");
        }
        if (msg == "-2") {

            alert("请登录之后在收藏!");
//            $("#LoginStatusHi").val("1");
//            BtPopload("popLogin"); 
//            
//            return false;
        }
    }
}


function sUserLogin(txtUserName, txtPassWord) {
    debugger;
    create();
    Agaurl = '/Ajax/Ajax.aspx?Type=UserLogin&txtUserName=' + encodeURIComponent(txtUserName) + '&txtPassWord=' + txtPassWord,
     xmlHttp.open("GET", Agaurl, true);
    xmlHttp.onreadystatechange = showResponseLogin;
    xmlHttp.setRequestHeader("If-Modified-Since", "0");
    xmlHttp.send(null);

}


function AddShopsCollection(ShopsId) {
后面还有 56 行代码,购买后查看完整代码

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

AI 解读

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

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