此事件被连接到一组元素:递归jQuery的事件
var elems = $(this).filter(function(){
...
});
我怎样才能触发更改事件处理程序中这些元素的变化事件,却忽略了当前元素?
elems.bind('change input', function(){
// do some stuff...
// then trigger change, but not on "this", to avoid the recursion issue
elems.change();
});
基本上我想OT忽略elems
this
,但只是在我的 “手册” 的变化() - 拨打以上......
+1 Re。糟糕的设计问题 – 2012-02-13 16:11:51
@RoryMcCrossan。听起来很尴尬,递归只是一个症状... – gdoron 2012-02-13 16:14:01