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 是空的,因为输入是无效的。如何访问当前输入值?