Here is the place where I two pages using jquery,
<script type="text/javascript" SRC="https://bbs.csdn.net/topics/${pageContext. Request. ContextPath}/js/messages_zh js" & gt; </script>
<script>
/* definition can only enter letters and Numbers */
JQuery. The validator. AddMethod (" zimuShuzi ", the function, value, element) {
Return this. Optional (element) | |/^ [a zA - Z0-9] + $/. The test (value);
}, "user name support letters and Numbers only");
</script>
<script>
Var validateFlag;
$(function () {
$(" # editor_passwordForm "). The validate ({
Rules: {
OldPassword: {
Required: true,
},
NewPassword: {
Required: true,
ZimuShuzi: true,
Rangelength: [3, 15],
},
AgainPassword: {
EqualTo: "# newPassword"
},
Truename: {},
},
Messages: {
AgainPassword: {
EqualTo: "enter the password twice, please confirm again"
}
}
});
});
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
<script>
The function exitSystem () {
Var flag=window. The WXC. XcConfirm (" confirm exit system?" , window. WXC. XcConfirm. TypeEnum. Confirm, {
OnOk: function () {
Window. The location. Href="https://bbs.csdn.net/topics/${contextPath}/exitServlet";
},
OnCancel function () {
return ;
}
});
}
</script>