http://api.jquery.com/live/
Attach an event handler for all elements which match the current selector, now and in the future. (动态生成的也行)
--------------------------------------
http://api.jquery.com/bind/
Handlers are attached to the currently selected elements in the jQuery object, so those elements must exist at the point the call to .bind() occurs. (先决条件,绑定的dom element必须已经存在)
------------------
As of jQuery 1.7, the .on() method is the preferred method for attaching event handlers to a document.
手册上有相关用法例子
$("a.offsite").live("click", function(){ alert("Goodbye!"); });
$(document).on("click", "a.offsite", function(){ alert("Goodbye!"); });
$('#foo').bind('click', function() {alert('User clicked on "foo."');});
on的这个$(document), 请参考 http://stackoverflow.com/questions/81...