After setting the src of the iframe to 'about:blank', it will not be set to about:blank, and the memory will not be released. I also have to use iframe.document.write('');
This way the content can be cleared, but after this processing, there will be any memory residues of about 500-1000K. This is the iframe bug of ie6. Dynamically created iframes will always consume some memory.
Copy the code