美文网首页
如何阻止a标签跳转

如何阻止a标签跳转

作者: _hider | 来源:发表于2021-05-28 16:36 被阅读0次
<a href="javascript:void(0)" target="_blank">跳转</a>  

当用户链接时,void(0)计算为0,用户点击不会发生任何效果。void该操作符指定要计算或运行一个表达式,但是不返回值。

相关文章

网友评论

      本文标题:如何阻止a标签跳转

      本文链接:https://www.haomeiwen.com/subject/dbbdsltx.html