标签:
$("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
标签:
原文地址:http://www.cnblogs.com/zhubenxi/p/5427425.html