2012-02-23 95 views

回答

105

$(document).on('event', 'selector', function() {});取代.live()

$('selector').on('event', 'selector', function() {});替换.delegate()

$('selector').on('event', function() {});代替.bind()

+5

+1为简洁起见。 – c69 2012-02-29 17:15:54

+0

救了我一天。谢谢 – 2013-01-21 23:16:53

+0

太好了,非常感谢 – 2013-06-17 10:43:52

相关问题