让A超链接无效的办法 阻止元素发生默认的行为
时间:2014-01-17 09:00:44
收藏:0
阅读:295
$("a").click(function(event){
event.preventDefault();
});
event.preventDefault();
方法阻止元素发生默认的行为(例如,当点击提交按钮时阻止对表单的提交)。
原文:http://www.cnblogs.com/william-lin/p/3523027.html
评论(0)