阻止默认事件操作
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了阻止默认事件操作相关的知识,希望对你有一定的参考价值。
Description: If this method is called, the default action of the event will not be triggered.For example, clicked anchors will not take the browser to a new URL. We can use event.isDefaultPrevented() to determine if this method has been called by an event handler that was triggered by this event.
$("a").click(function(event) { event.preventDefault(); //CODE });
以上是关于阻止默认事件操作的主要内容,如果未能解决你的问题,请参考以下文章