我制造了一个含有价格的陈情门槛物。 当我向我的控制者表明,情况是:
- Enter "15" -> ok! Controller receives 15.
- Enter "15.00" -> not ok! Controller receives a null field.
- Enter "15,00" -> validation error because the field should be formatted with a period (I just stick to one formatting type to avoid complexity for the time being).
- Enter "15.00M" -> validation error, probably because it s not considered to be a number.
我如何确定这一点? 我想“15.00”是一种正确的价值,但我可以说明如何做到这一点。 我在互联网上找到了两套习惯模式的宾逊,但是他们做了一些工作。