Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 jquery 插件进行内联编辑。但我想在双击而不是单击时激活版本。
这是一个创建的 jsFiddle:http: //jsfiddle.net/N5cvv/2/
你能告诉我如何解决我的问题吗?
在您的代码中检查此版本
.live( ['dblclick', 'mouseenter','mouseleave'].join(namespace+' '), function( event ) {
//在每次点击中作为 dblclick