哈哈哈哈哈!!!今天钻研出来了这个问题!!!!!!
$("#answer_comment_content_"+aid).html(commentHTML);
用HTML()方法追加元素,内容里面的js只执行一个<script>标签里面的,哈哈,后面的都不执行!!!!
commentHTML+="<script>$.emoticons({ },function (api){ var $content = $('#"+commentObj[i].id+"');";
commentHTML+="$content.html(api.format($content.html())); });";
commentHTML+="<\/script><script>document.getElementById('"+commentObj[i].id+"').innerHTML=replace_ems(document.getElementById('"+commentObj[i].id+"').innerHTML);<\/script>";