Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用 ng-model 验证多个元素。当它们中的每一个都为真时,执行一个动作。
这可能吗?
您可以使用 AngularJS 内置验证。
这是描述如何使用它的好资源:http: //scotch.io/tutorials/javascript/angularjs-form-validation