NumberValidator通过exceedsMaxError,lowerThanMinError分别设置大于最大值,小于最小值的提示信息
The <mx:NumberValidator> tag inherits all of the tag attributes of its superclass, and adds the following tag attributes:
<mx:NumberValidator
allowNegative="true|false"
decimalPointCountError="The decimal separator can only occur once."
decimalSeparator="."
domain="real|int"
exceedsMaxError="The number entered is too large."
integerError="The number must be an integer."
invalidCharError="The input contains invalid characters."
invalidFormatCharsError="One of the formatting parameters is invalid."
lowerThanMinError="The amount entered is too small."
maxValue="NaN"
minValue="NaN"
negativeError="The amount may not be negative."
precision="-1"
precisionError="The amount entered has too many digits beyond the decimal point."
separationError="The thousands separator must be followed by three digits."
thousandsSeparator=","
/>
The <mx:NumberValidator> tag inherits all of the tag attributes of its superclass, and adds the following tag attributes:
<mx:NumberValidator
allowNegative="true|false"
decimalPointCountError="The decimal separator can only occur once."
decimalSeparator="."
domain="real|int"
exceedsMaxError="The number entered is too large."
integerError="The number must be an integer."
invalidCharError="The input contains invalid characters."
invalidFormatCharsError="One of the formatting parameters is invalid."
lowerThanMinError="The amount entered is too small."
maxValue="NaN"
minValue="NaN"
negativeError="The amount may not be negative."
precision="-1"
precisionError="The amount entered has too many digits beyond the decimal point."
separationError="The thousands separator must be followed by three digits."
thousandsSeparator=","
/>