.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);
}
});
}
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。