人民不仅有权爱国,而且爱国是个义务,是一种光荣。——徐特立

1
2
3
4
5
6
<a href="https://VampireAchao.gitee.io/" target="_self">默认当前页面打开</a>
<a href="https://VampireAchao.gitee.io/" target="_blank">新页面打开</a>
<a href="" target="ruben">在frame中打开</a>
<iframe src="" name="ruben"></iframe>
<a href="https://VampireAchao.gitee.io/" target="_parent">如果是在iframe里,无视iframe直接当前外层页面打开</a>
<a href="https://VampireAchao.gitee.io/" target="_top">如果是在iframe里,无视iframe直接当前顶层页面打开</a>

几种a标签的打开方式,分享给大家