preventDefault() 方法
定义和用法
取消事件的默认动作。
语法
<pre style="margin: 15px 0px 0px; padding: 20px; border: 1px dotted rgb(119, 136, 85); font-family: Consolas; width: 765px; background: rgb(245, 245, 245); line-height: 1.4;">event.preventDefault()</pre>
取消事件的默认动作。
<pre style="margin: 15px 0px 0px; padding: 20px; border: 1px dotted rgb(119, 136, 85); font-family: Consolas; width: 765px; background: rgb(245, 245, 245); line-height: 1.4;">event.preventDefault()</pre>