你试试这个,我试过了可以,哈哈 把btn222的click方法放在displayResult2方法中 $(".btn222").live("click",function(){ var id = $(this).parents("tr").children("td:nth-child(1)").text(); alert(id); }); $(".btn222").live(function(){ 把click 改成live 没有写事件方法,当然没反应喽!onclick='fun()'
";alert(table);document.getElementById("process_span").innerHTML=table;});});1 aaa xxx ";table+="3 bbb xxxx 7 ccc xxx ";table+=" ";table+="