场景:当文本内容填写为“同意”时允许提交,如否则提示“输入错误”
配置:
if(boData.jmcs.wb=="同意") //jmcs为业务对象别名,wb为字段名 { return true; } else { alert("输入有误"); return false; }
效果: