angular.js - angular two-way data binding issue?
PHPz
PHPz 2017-05-15 16:57:31
0
1
620
console.log()打印playPauseIcon的值为 Object {pause: 1}
<button class="iconButton play" ng-click="onClickPlayPause()" ng-class="playPauseIcon" aria-label="Play/Pause"></button>
问题就在这 class里面的play应该为pause才对。多次点击就会出现这种情况。时好时坏的那种感觉,
双向绑定怎么会出现这种问题啊,很郁闷啊。
PHPz
PHPz

学习是最好的投资!

reply all(1)
刘奇

The fields starting with

aria are for assistive programs for people with disabilities. I didn’t see your onClick code or where the button text is assigned..

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template