阻止事件默认行为

第一种方式

event.preventDefault();

第二种方式

return false;

猜你喜欢

转载自blog.csdn.net/zsytechnology/article/details/78128749
今日推荐