在 jQuery < 1.5 中获得 live() 和 on() 相同功能的正确方法是什么。
问问题
49 次
3 回答
1
您需要使用.delegate
$( "table" ).delegate( "td", "click", function() {
alert($(this).html());
});
于 2014-03-03T08:00:43.397 回答
0
使用delegate
https://api.jquery.com/delegate/适用于 jQuery 1.4.3+
于 2014-03-03T07:57:26.547 回答