开心

Jquery Lambda delegate

$("table").delegate("td", "hover", function(){ $(this).toggleClass("hover"); 
});

$("table").each(function(){ $("td", this).live("hover", function(){ $(this).toggleClass("hover"); }); 
}); 

 

Lambda:

delegate int del(int i);
del myDelegate = x => x * x;
int j = myDelegate(5); //j = 25

posted @ 2016-04-24 16:51  大喜  阅读(534)  评论(0编辑  收藏  举报
坦然 会增进信任 - 信任 感情才会升华