PDA

View Full Version : TextField?maskRe????



ak_ext
25 May 2009, 10:48 PM
?????textField????????
???????????????????????

???0?9??(???)??
???0?9??(???)?.(???)??
???0?9??(???)?.(???)?????7??????4?

??????
editor : new fm.TextField({maskRe: new RegExp("[0-9]")})
???????
????????????

integra
27 May 2009, 1:29 AM
maskRe?????????????????????
?????????????????????????
1.?new RegExp("[0-9,]")
2.?new RegExp("[0-9,\.]")
???
3.???maskRe?validator????????????????????


?????textField????????
???????????????????????

???0?9??(???)??
???0?9??(???)?.(???)??
???0?9??(???)?.(???)?????7??????4?

??????
editor : new fm.TextField({maskRe: new RegExp("[0-9]")})
???????
????????????

ak_ext
27 May 2009, 2:11 AM
validator??????maskRe????
TextField?????????????
???????????????
???????????????????
????????????
editor : new fm.TextField({validator: [0-9]{7}.[0-9]{4}})
????????????

integra
27 May 2009, 4:39 PM
validator??????maskRe????
TextField?????????????
???????????????
???????????????????
????????????
editor : new fm.TextField({validator: [0-9]{7}.[0-9]{4}})
????????????

validator???????????????


validator: function(value){
if(/^?????????$/.test(value)){
return true;
}else{
return "?????????????????";
}
}

????ak_ext????????????????????????????
???????????????????????:s