angular.js - 怎样在使用ng-repeat属性的标签里面监听单个事件,使其能够单个改变CSS。
phpcn_u1582
phpcn_u1582 2017-05-15 16:59:36
0
2
501

phpcn_u1582
phpcn_u1582

répondre à tous(2)
洪涛
ng-click="note.bigger=true" ng-class="{ bigger : note.bigger }"



http://stackoverflow.com/a/22685918/2586541

phpcn_u1582
<textarea ng-class="{handsome: note.clicked}" ng-click="note.clicked=true" ng-repeat="note in notes"></textarea>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!