gpt4 book ai didi

javascript - AngularJS - 原始/肮脏和触摸/未触摸之间的区别

转载 作者:行者123 更新时间:2023-12-03 04:25:14 24 4
gpt4 key购买 nike

AngularJS Developer Guide - Forms列出了许多有关表单和字段的样式和指令。对于每一个,都有一个 CSS 类:

ng-valid
ng-invalid
ng-pristine
ng-dirty
ng-touched
ng-untouched

原始/肮脏接触/未接触有什么区别?

最佳答案

AngularJS Developer Guide - CSS classes used by AngularJS

  • @property {boolean} $untouched True if control has not lost focus yet.
  • @property {boolean} $touched True if control has lost focus.
  • @property {boolean} $pristine True if user has not interacted with the control yet.
  • @property {boolean} $dirty True if user has already interacted with the control.

关于javascript - AngularJS - 原始/肮脏和触摸/未触摸之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25025102/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com