设置<a>标签不跳转,添加点击事件返回false即可
onclick=func();return false;
a标签
原文:https://www.cnblogs.com/codechange/p/8367047.html