ondblclick和dblclick区别
1、ondblclick是一个HTML DOM Event 对象,没有jquery也可以触发这个事件的,使用方法例如
1
|
<button ondblclick= "xxx" >xxx</button> |
支持该事件的 HTML 标签:
<a>, <address>, <area>, <b>, <bdo>, <big>, <blockquote>, <body>, <button>, <caption>, <cite>, <code>, <dd>, <dfn>, <div>, <dl>, <dt>, <em>, <fieldset>, <form>, <h1> to <h6>, <hr>, <i>, <img>, <input>, <kbd>, <label>, <legend>, <li>, <map>, <object>, <ol>, <p>, <pre>, <samp>, <select>, <small>, <span>, <strong>, <sub>, <sup>, <table>, <tbody>, <td>, <textarea>, <tfoot>, <th>, <thead>, <tr>, <tt>, <ul>, <var>
支持该事件的 JavaScript 对象:
document, link
2、dblclick() 是jquery事件,使用方法:$(selector).dblclick(function),例如
1
2
3
|
$( "button" ).dblclick( function (){ xxx }); |