代码之家  ›  专栏  ›  技术社区  ›  aronchick

IE7和Scriptaculous自动完成程序内存不足

  •  0
  • aronchick  · 技术社区  · 16 年前

    仅在IE7中,当我运行Autocompleter.Local时,我遇到了一个奇怪的内存不足错误。下载的内容大约为1MB,但它是在后台完成的(在JSON文件中)。

    function create_listeners() {
     jQuery('.auto_complete_field').each(function() {
       var terms_id = 'terms_' + jQuery(this).attr('id');
       jQuery(this).after('<div class="auto_complete" id="' + terms_id + '"></div>');
    //   jQuery(this).attr('value', 'test');
       new Autocompleter.Local(jQuery(this).attr('id'),terms_id, terms, {fullSearch:false, frequency:0, minChars:1});
     })
    }
    

    有人知道为什么这只会影响IE 6/7吗?

    2 回复  |  直到 14 年前
        1
  •  0
  •   Annie    16 年前

    你可以使用 dynaTrace Ajax Edition 找到瓶颈。

        2
  •  0
  •   aronchick    16 年前

    出现 IE7对变量有1MB的blob大小限制,这就是我们在这里遇到的问题。