相关疑难解决方法(0)

ng-show即使满足条件也不起作用

我正在尝试使用ng-show,只是当某些东西存在时,显示它.

<span ng-show="comment">{{comment}}</span>
Run Code Online (Sandbox Code Playgroud)

我在范围注释="否"中对此进行了测试,但它隐藏了它.当comment ="Yes"显示它时,我很困惑为什么会发生这种情况,因为在JavaScript中我尝试if(comment)并且它有效...

javascript angularjs ng-show

0
推荐指数
1
解决办法
946
查看次数

标签 统计

angularjs ×1

javascript ×1

ng-show ×1