我正在尝试使用ng-show,只是当某些东西存在时,显示它.
<span ng-show="comment">{{comment}}</span>
我在范围注释="否"中对此进行了测试,但它隐藏了它.当comment ="Yes"显示它时,我很困惑为什么会发生这种情况,因为在JavaScript中我尝试if(comment)并且它有效...
javascript angularjs ng-show
angularjs ×1
javascript ×1
ng-show ×1