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。为什么要执行警报功能?谢谢
<div ng-if="false"> <script> alert("a"); </script> </div>
因为alert()将在加载角度之前执行。ng-if暂时没有
alert()
ng-if