- 主题:如何找到DOM结点上挂载着的事件处理函数
- 比如$(table).find("tr").dblclick(function(event){...});
 
 怎么样找回这个加进去的处理函数? 命名函数当然例外。我是指没有命名的。
 而且如果$(table)也变成参数的话,那么命名函数也解决不了问题。
 --
 FROM 116.247.85.*
 
- 这是非常糟糕的写法,工业上没人这么写代码吧,根本没法维护
 建议用前端mvc框架
 --
 FROM 115.70.49.*
 
- 你以为我说的是什么写法?
 
 【 在 cnxs 的大作中提到: 】
 : 这是非常糟糕的写法,工业上没人这么写代码吧,根本没法维护
 : 建议用前端mvc框架
 --
 FROM 180.97.182.*
 
- why you need it?
 
 【 在 wuhaochi (oo) 的大作中提到: 】
 : 比如$(table).find("tr").dblclick(function(event){...});
 : 怎么样找回这个加进去的处理函数? 命名函数当然例外。我是指没有命名的。
 : 而且如果$(table)也变成参数的话,那么命名函数也解决不了问题。
 : ...................
 --
 FROM 218.241.172.*
 
- 表行被移除到缓冲区
 后再再移回来,需要这个事件重新绑定一下
 
 【 在 XeCycle (据说是小 X) 的大作中提到: 】
 : why you need it?
 --
 FROM 116.247.85.*
 
- $(table).dblclick(function() { whatever_to_do_with(this); })
 
 【 在 wuhaochi (oo) 的大作中提到: 】
 : 表行被移除到缓冲区
 : 后再再移回来,需要这个事件重新绑定一下
 --
 FROM 218.241.172.*
 
- 【 在 XeCycle (据说是小 X) 的大作中提到: 】
 : 标  题: Re: 如何找到DOM结点上挂载着的事件处理函数
 : 发信站: 水木社区 (Fri Jul  8 09:17:36 2016), 站内
 :
 : $(table).dblclick(function() { whatever_to_do_with(this); })
 
 这个……显然我会。我是问,现在,我给你一个$tr ,再给你一个$table,你能在$tr上绑上和$table中的表行一样的事件处理函数吗?注意$tr 并不一定来自于 $table。
 
 :
 : 【 在 wuhaochi (oo) 的大作中提到: 】
 : : 表行被移除到缓冲区
 : : 后再再移回来,需要这个事件重新绑定一下
 :
 :
 : --
 :
 : ※ 来源:·水木社区 newsmth.net·[FROM: 218.241.172.*]
 --
 FROM 116.247.85.*
 
- if you mean to reuse the function, make it reusable.  an inline function
 expression is of course not reusable.
 
 【 在 wuhaochi (oo) 的大作中提到: 】
 : 这个……显然我会。我是问,现在,我给你一个$tr ,再给你一个$table,你能在$tr上绑上和$table中的表行一样的事件处理函数吗?注意$tr 并不一定来自于 $table。
 --
 FROM 218.241.172.*
 
- function rebind_event($tr, $table){
 
 // bind $table's row dblclick to $tr
 
 // how to implement this function ?
 
 }
 
 
 【 在 XeCycle (据说是小 X) 的大作中提到: 】
 : if you mean to reuse the function, make it reusable.  an inline function
 : expression is of course not reusable.
 --
 FROM 116.247.85.*
 
- 【 在 wuhaochi (oo) 的大作中提到: 】
 : 标  题: Re: 如何找到DOM结点上挂载着的事件处理函数
 : 发信站: 水木社区 (Fri Jul  8 13:05:19 2016), 站内
 :
 : function rebind_event($tr, $table){
 :
 :         // bind $table's row dblclick to $tr
 :
 : // how to implement this function ?
 :
 : }
 :
 :
 : 【 在 XeCycle (据说是小 X) 的大作中提到: 】
 : : if you mean to reuse the function, make it reusable.  an inline function
 
 s/the function/the handler function/
 
 : : expression is of course not reusable.
 :
 :
 : --
 : 追逐生命的异彩!
 :
 :
 : ※ 来源:·水木社区 newsmth.net·[FROM: 116.247.85.*]
 --
 FROM 218.241.172.*