EXTJS中自定義表單驗證

Ext.apply(Ext.form.VTypes, { isIp:function(val, field) { //返回true,則驗證經過,不然驗證失敗 var exp=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|
相關文章
相關標籤/搜索