2013-08-10 3 views
0
<script type="text/javascript"> 
function insert_comment(id) 
{ 
    var comment_des   = $("#comment_text_"+id).val(); 

    var fk_post_id   = $("#fk_post_id_"+id).val(); 
    var post_user_id  = $("#post_user_id_"+id).val(); 
    var user_id    = $("#user_id_"+id).val(); 

     $.post('ajax_files/insert_comment.php', 

아약스의 시간을 빠르게 최적화 할 수 있습니다) .html (데이터);어떻게/응답의

  }); 
} 
</script> 

답변

0

gzip으로 시작하는 데이터가 적습니다.

하지만 AJAX는 실시간으로 설계되지 않았습니다. 실시간으로 원한다면 웹 소켓으로 이동해야합니다.