.Net中BS端代码 理解

按钮 触发功能   <a class="button whiteButton"  href="javascript:void()"  onclick="AdminInfoPwd_EditPwd()">确定</a></span>

function AdminInfoPwd_EditPwd() {
    $(".errorMsg").html("");
    var pwd = GetSharpObj("txt_Pwd");
    var newpwd = GetSharpObj("txt_NewPwd");
    var repwd = GetSharpObj("txt_RePwd");
    if (InputIsEmpty("txt_Pwd") ||$.trim(pwd.val()).length<1) {
        GetSharpObj("span_Pwd").html("原密码不能为空");
        pwd.focus();
        return;
    }

 var data = "pwd=" + pwd.val() + "&newpwd=" + newpwd.val() + "&repwd=" + repwd.val();

    SharpAjaxJson("/AdminIndex/AdminPwd", data, function (d) {
        if (d.success == "true") {
            SharpShowTips(d.message);
            AdminInfoPwd_ReSet();
        }
        else {
            GetSharpObj("txt_" + d.targetid).focus();
            GetSharpObj("span_" + d.targetid).html(d.message);
        }
    });

}

.Net中BS端代码 理解,布布扣,bubuko.com

.Net中BS端代码 理解

上一篇:Redis linux 下安装


下一篇:js判断汉字字数