html之a标签

屏蔽跳转

  1.href属性删除

  2.href="javascript:void(0);"    void是一个操作符,void(0)返回undefined,地址不发生跳转。

  3.style="cursor:pointer;"     

原文地址:https://www.cnblogs.com/panpanwelcome/p/5608021.html