//当点击cancel时data返回的值是undefined
$.messager.prompt('Reset Password', 'Please enter the new password:', function(r){
if (r!=undefined){
if(r!=""){
alert(r);
}else{
$.messager.alert('<spring:message code="sysinfo" />','New password is blank!','warning');
return false;
}
}
});
本文详细介绍了在使用EasyUI框架时,如何实现密码重置功能。特别关注了当用户点击取消按钮时,如何处理返回值为undefined的情况,以及如何验证用户输入的新密码是否为空。
921

被折叠的 条评论
为什么被折叠?



