摘要:
Ext.apply(Ext.form.VTypes, { //密码 repetition: function(val, field) { if (field.repetition) { var cmp = Ext.getCmp(field.repetition.targetCmpId); if (val == cmp.getValue()) { //取得目标组件(表单)的值,与宿主表单的值进行比较。 return true; } else { return false; } } }, repetitionText: '密码不匹配', //手机或电话 phonecheck : functi 阅读全文