在用ui-router的时候,会遇到不用跳转的<a>标签,那怎么怎么实现呢?
1、通过设置href属性
写href="javascript:return 0"
2、不写href="#",然后添加css样式:
a:hover{ cursor:pointer}
在用ui-router的时候,会遇到不用跳转的<a>标签,那怎么怎么实现呢?
1、通过设置href属性
写href="javascript:return 0"
2、不写href="#",然后添加css样式:
a:hover{ cursor:pointer}
本文标题:<a>标签href怎么写可以避免跳转
本文链接:https://www.haomeiwen.com/subject/wtvmyttx.html
网友评论