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-href 上偶然发现了这个链接,我想知道同样的事情。
有没有办法清除 ng-href 链接的 href?Null 值在 1.0.3 之后不起作用。
根据commit,空值的防止主要针对<img src> <link href> <script src>,但也顺便防止空值href是<a>有效值。我为此写了一张票。
<img src>
<link href>
<script src>
href
<a>
是的,只需将 ng-href 的返回值设置为“”(<-引号之间有一个空格)。它应该按预期工作。