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

Javascript IE7和Scriptaculous自动完成程序内存不足,javascript,internet-explorer,prototypejs,scriptaculous,Javascript,Internet Explorer,Prototypejs,Scriptaculous,仅在IE7中,当我运行Autocompleter.Local时,我遇到了一个奇怪的内存不足错误。下载的内容大约为1MB,但它是在后台完成的(在JSON文件中) 函数create_listeners(){ jQuery('.auto_complete_field')。每个(函数(){ var terms_id='terms_'+jQuery(this.attr('id'); jQuery(this).after(“”); //jQuery(this.attr('value','test'); 新的

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

函数create_listeners(){ jQuery('.auto_complete_field')。每个(函数(){ var terms_id='terms_'+jQuery(this.attr('id'); jQuery(this).after(“”); //jQuery(this.attr('value','test'); 新的Autocompleter.Local(jQuery(this.attr('id'),terms\u id,terms,{fullSearch:false,frequency:0,minChars:1}); }) } 有人知道为什么这只会影响IE 6/7吗?

你可以用它来找到瓶颈。

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

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});
 })
}