现获取文本框的值,然后匹配正则表达式,^((\d)|(1\d)|(2[0-5][0-4]))$,满足则在否则不在
试一下 ^(([1-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))应该能行
测试正确:(^[0-9])|(^[1-9][0-9]$)|(^[1-2][0-9][0-4]$)