1: $("input[typename=Adetail]").each(function (i) {
        listA.push($(this).val());
    })
2: $.ajax({
        type: "POST",
        url: "../../../Handler/TravelRequestFamilyHandler.ashx",
        data: { maininfo: main.join("#"), detailAinfo: detailA.join("#"), detailBinfo: detailB.join("#"), detailCinfo: detailC.join("#"), typeinfo: $("#hiddenVal").val(), savetype: $("#hiddenSaveType").val(), tcrtype: objtype },
        async: false,
        success: function (textStatus) {
            if (textStatus = "success") {
                $("#hiddenWebA").val(detailA.join("#"));
                $("#hiddenWebB").val(detailB.join("#"));
                $("#hiddenWebC").val(detailC.join("#"));
            }
            else {
                alertinfo = "error";
            }
        },
        error: function () {
            alertinfo = "error";
        }
    });
    return alertinfo;
3: setTimeout(function () { objbtn.disabled = "disabled"; }, 1);            document.getElementById('divProcessing').style.display = 'block';
4: if (confirm(confirmtext)) {
            if (objtype == "3") {
                var mail = $("#txtEmail").val(); ;
                var companyMail = $("#hdEmail").val();
                if (companyMail != "") {
                    mail += ";" + companyMail;
                }
                mail += ";[email protected];[email protected];[email protected];[email protected];";
                var dateDeadLine = $("#txtGSDate").val();
                var userName = $("#ddlPassportNameTitle option:selected").text() + " " + $("#txtPassportName").val();
                var url = "mailto:[email protected];[email protected]?cc=" + mail + "&body=Dear Agency,%0A  Enclosed please find the finalized TR, and issue the ticket for " + userName + " no later than " + dateDeadLine + ".%0A  Regards%0A  Travel%0ATel: 00971 50 1819 894%0AExt: 29188%[email protected]";
                window.open(url, "", "", "");
            }
  额,为题有点多

解决方案 »

  1.   

    1,3函数不懂,说下方法的意思    ,4第6行为啥加个这个 ";" 
    还有这些members += "," + $("#chkParents").val();中的","
     Incomplete += ', "Family Members Entitled"';赋值后面那个 ,
      

  2.   


    1: $("input[typename=Adetail]").each(function (i) {
      listA.push($(this).val());
      })将所有typename属性的值为Adetail的input的值进行遍历,并将它们的值增加到数组listA中3: setTimeout(function () { objbtn.disabled = "disabled"; }, 1);  document.getElementById('divProcessing').style.display = 'block';
    定时器:每隔0.001秒将objbtn置于不可操作状态,即objbtn.disabled = "disabled"; 
    下面那句是将id=divProcessing的容器状态变更为显示。如果想隐藏,则"block"改为:"none"4中第6行:mail += ";" + companyMail;
    前面一个+= ";"中的“;”是为了拼接字符串mail,mail生成后格式如下:a;b;c;d
    后面的什么members呀,Incomplete呀的那个+= ', "中的“,”号也是同样的功用
      

  3.   

    1: $("input[typename=Adetail]").each(function (i) {
      listA.push($(this).val());
      })修正为:将所有typename属性的值为Adetail的input进行遍历,并将它们的值增加到数组listA中打多了两字“的值”