a标签不跳转的方法 抛瓦羊 2023-01-30 63 阅读1分钟 1.onclick时间返回false 2.用href伪协议 最常用的方法,也是最周全的方法,void是一个操作符,void(0)返回undefined,地址不发生跳转。 href="javaScript:void(0);"