中工作
我使用某些链接在Firefox方面存在问题。我有一个正在使用Angular-UI路由的网页。在我发布文件的某些页面中,链接仅在chrome中起作用(它打开文档 - 这是我想要的),而在Firefox中,链接不做。
<div class="list-group">
<button ng-repeat="file in hcl16" type="button" class="list-group-item"><a href="documente/HCL/2016/{{file}}">{{file}}</a></button>
</div>
显示了文件,但链接未在Firefox中打开。
有人知道为什么?
您可以尝试以下代码 -
我认为您缺少#/-> href ="#/docotee/hcl/2016/{{file}}"
或
如果您使用的是$ locationprovider.html5mode(true);然后使用href ="/docorme/hcl/2016/{{file}}"
<div class="list-group">
<button ng-repeat="file in hcl16" type="button" class="list-group-item"><a href="#/documente/HCL/2016/{{file}}">{{file}}</a></button>
我使用此
<a ng-repeat="file in hcl16" href="documente/HCL/2016/{{file}}" class="list-group-item list-group-item-text">{{file}}</a>
而不是这个
<button ng-repeat="file in hcl16" type="button" class="list-group-item"><a href="documente/HCL/2016/{{file}}">{{file}}</a></button>
现在可以在Chrome和Firefox