我有我的角指令,这是一些div在它周围有一个<a href="" target="_self"></a>,但是当我点击div时它不会重新加载我的页面。
我做错了什么吗?
这是完整的指令
<div class="col s12 m6 l4">
<div class="video-card">
<a href="#/videos/detail/{{video.Id}}" target="_self">
<div class="card-image">
<img ng-src="{{video.ThumbnailUrl?video.ThumbnailUrl:'img/images.png'}}" src="" />
</div>
</a>
<a href="#/videos/detail/{{video.Id}}" target="_self">
<div class="card-content">
<div class="card-title-box">
<a href="#/videos/detail/{{video.Id}}">
<span class="card-title grey-text text-darken-4">
{{video.Title}}
</span>
</a>
</div>
<div class="card-action">
<div class="more-info">
<span class="group grey-text">
{{ video.Author}}
</span>
<a href="#/groups/detail/{{playlist.Id}}/List/{{video.Id}}" ng-if="playlist">
<i class="mdi-av-play-arrow right tooltipped black-text small "
data-position="top" data-delay="0" data-tooltip="{{'video.playFromhere' | translate}}"></i>
</a>
</div>
</div>
</div>
</a>
</div>
</div>我需要重新加载页面,因为我在细节页面上使用的插件中有一个错误,而且这个插件的作者也不知道发生了什么,唯一的方法就是在看视频的时候重新加载页面。
发布于 2015-04-20 11:40:01
可以使用window.location.reload()在Javascript中重新加载页面
<a href="" onclick="window.location.reload()"></a>发布于 2015-04-20 11:40:17
目标只设置链接应该操作的框架。因此,如果希望重新加载文档,请使用
window.location.reload();https://stackoverflow.com/questions/29746826
复制相似问题