在jquery的1.11版本以前,綁定動態產生的元素使用的方法有 .live和dejquery
$('body').on("click",'div',function(){ alert($(this).attr('id')); });