2012-02-23 90 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

相關問題