Fixed client JScript Memory leakage by shawl. Qiu

Source: Internet
Author: User
Fixed client JScript Memory leakage by shawl. Qiu

Note:
Memory of each Dom and JScript.
Dom + Event combination is the main cause of Memory leakage.
What else? There are many more.

However, let's add that, no matter what, null is correct when the object is used up.

Shawl. Qiu
2006-12-4
Http://blog.csdn.net/btbtd

Function: ffixml (OBJ );

 
 
  1. <SCRIPT type = "text/JavaScript">
  2. // <! [CDATA [
  3. Function ffixml (OBJ ){
  4. VaR recognition = obj. attributes;
  5. If (ASD)
  6. For (VAR I = 0, j = recognition. length; I <j; I ++)
  7. If (typeof OBJ [recognition [I]. Name] = 'function') OBJ [recognition [I]. Name] = NULL;
  8. If (obj. childnodes)
  9. For (VAR I = 0, j = obj. childnodes. length; I <j; I ++) arguments. callee (obj. childnodes [I]);
  10. } // Shawl. Qiu script
  11. OnUnload = function () {ffixml (document. Body );}
  12. //]>
  13. </SCRIPT>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.