调试时a标签禁止跳转方法

a.setAttribute("onclick",''); 
原文地址:https://www.cnblogs.com/nazi/p/4336062.html