这就是我所拥有的。
<form action="/asvabo/ChangeCustomerRegister.do" method="post"
name="CustomerRegisterForm">
...
<input ... type="text" ... name="order.id" pattern="[0-9]*" required
ng-model="orderid" ng-trim="true"/>
<!-- Label for show that the input is required -->
<span class="error"
ng-show="CustomerRegisterForm.order.id.$error.required">Required!
</span>
....
</form>
我认为,NAME 属性有问题。如果我在两者中都使用 orderid,则输入标签和以下错误条件将起作用。但是我们使用 Struts,我需要 NAME 属性,比如xxxx.yyyy
有没有办法在 der ng-show
exprssion 中使用这种语法?
感谢您的评论。