English 中文(简体)
j Query html()记忆问题
原标题:jQuery html() memory problem
  • 时间:2010-11-10 21:16:26
  •  标签:
  • jquery
  • ajax

在做以下工作时,可以看到在神学院的任务主管机构中仅仅使用记忆。 i 无。 如果说一行(“独一无二的 t”......html(扼制);那么,所有东西都是世界上的罚款。 任何想法? 感谢大家。 oh oh run run run " "

  $.ajax({
    type: "GET",
    dataType:  json ,
    url:  <?php echo base_url();?>includes/updateTable.php ,
    cache: false,
    data: dataString,
    success: function(data)
    {
      var string =   ;

      $.each(data.monitorData, function(i,monitor)
      {
        string = string +  <tr id="r +monitor[ id ]+ "> ;

        for (var key in monitor)
        {
          string = string +  <td> +monitor[key]+ </td> ;
        }
        string = string +  </tr> ;
      });

      $("#main_table tbody").html(string);
    }
  });
问题回答

页: 1

$("#main_table tbody").empty();

附 件

$("#main_table tbody").html(string);

它从技术上说没有改变,但......。

可能的话是,由于str骨被用于lam木(每美元)的功能, j子不是收集垃圾。

添加:

delete string

直至成功职能结束。





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签