帮忙写一个JS 函数!
if (RegResult.username == false) {
var uname = $.trim($("#unameInp").val());
if (uname == "") {
showNoticeMessage("wrong", "请输入帐号!", "unameWrap");
logdata.result = "nouname";
}
ok = false;
if (wavawrap == "") {
wavawrap = "unameWrap";
focusinp = "unameInp1";
}
}
if (RegResult.password == false) {
var passw = $.trim($("#passwInp").val());
if (passw == "") {
showNoticeMessage("wrong", "请输入密码!", "passwWrap");
logdata.result = "nopassword";
}
ok = false;
if (wavawrap == "") {
wavawrap = "passwWrap";
focusinp = "passwInp1";
}
}
if (RegResult.passwordconfim == false) {
var passwc = $.trim($("#passConfim").val());
if (passwc == "") {
showNoticeMessage("wrong", "请再次输入密码!", "passconfimWrap");
logdata.result = "nopasswordconf";
}
ok = false;
if (wavawrap == "") {
wavawrap = "passconfimWrap";
&nb