【发布时间】:2013-03-29 00:37:24
【问题描述】:
使用时
$(document).on('dblclick', '#selector_id', {form_key:10}, my_function)
my_function = function(){
console.log(event)
}
我希望能够根据the documentation 从event.data 检索form_key
但是,在这种情况下,我得到的是MouseEvent,而不是Event,并且它没有data 属性。
我错过了什么?
【问题讨论】:
标签: jquery javascript-events event-handling