Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么在这个例子中ng-if对我不起作用,但ng-show对JSFiddle 起作用:
<div ng-if="false">text</div> <div ng-show="false">text2</div>
以及如何解决这个问题?
ngIf是 v1.1.5 中添加的新指令。JSFiddle 有你在 1.1.1。
ngIf