每次单击一个按钮时,jquery变慢

时间:2013-11-06 10:45:32

标签: jquery ajax

我创建了2个用jquery加载一些数据的按钮

    $('.friends').click(function(){

    var id = $('html').attr('id');



    $.post('ajax/friends_ajax.php', {id:id}, function(callback){
        $('#friends_content').html(callback);

    });


});

但是每次我在两个按钮之间切换它会变得更慢,更慢......而且速度更慢..是否有解释这个和maby解决方案:S?

你的时间。

0 个答案:

没有答案
相关问题