0
有两个字段。我需要一个比第二个更小,第二个比第一个更多,同时通过验证。具有最小/最大参数的验证号码
但是,在进入第一个号码时不保存在模型(保存为未定义),因为没有通过验证条件“最大”
对我重要的是键盘输入而不是按钮
有人能够帮我解决这个问题?
<td><input type="number" class="form-control input-sm" ng-model="item.low" max="{{item.high-1}}" required></td>
<td><input type="number" class="form-control input-sm" ng-model="item.high" min="{{item.low+1}}" required></td>
是的,我设置在低0和高1. 在你的例子有这个问题。 重要的是键盘输入,而不是按钮 – zam 2014-09-25 16:55:24