sitelink1  
sitelink2  
sitelink3  
sitelink4  
extra_vars4  
extra_vars5  
extra_vars6  

<html>  
    <head>  
        <script language="JScript">  
  
        function LeakMemory()   
        {   
            var hostElement = document.getElementById("hostElement");    
  
            // Do it a lot, look at Task Manager for memory response   
  
            for(i = 0; i < 5000; i++)   
            {   
                var parentDiv =    
                    document.createElement("<div onClick='foo()'>");   
                var childDiv =    
                    document.createElement("<div onClick='foo()'>");   
  
                // This will leak a temporary object   
                parentDiv.appendChild(childDiv);   
                hostElement.appendChild(parentDiv);    
                hostElement.removeChild(parentDiv);   
                parentDiv.removeChild(childDiv);                   
                parentDiv = null;   
                childDiv = null;   
            }   
            hostElement = null;   
        }   
    
  
        function CleanMemory()   
        {   
            var hostElement = document.getElementById("hostElement");    
  
            // Do it a lot, look at Task Manager for memory response   
  
            for(i = 0; i < 5000; i++)   
            {   
                var parentDiv =    
                    document.createElement("<div onClick='foo()'>");   
                var childDiv =    
                    document.createElement("<div onClick='foo()'>");    
  
                // Changing the order is important, this won't leak               
                hostElement.appendChild(parentDiv);   
                parentDiv.appendChild(childDiv);    
                hostElement.removeChild(parentDiv);   
                parentDiv.removeChild(childDiv);                   
                parentDiv = null;   
                childDiv = null;   
            }   
            hostElement = null;   
        }   
        </script>  
    </head>  
  
    <body>  
        <button onclick="LeakMemory()">Memory Leaking Insert</button>  
        <button onclick="CleanMemory()">Clean Insert</button>  
        <div id="hostElement"></div>  
    </body>  
</html>  
번호 제목 글쓴이 날짜 조회 수
106 Dynatrace For Ajax Performance 황제낙엽 2010.08.18 447
105 javascirpt IME-Mode 설정하기 황제낙엽 2010.08.17 1495
104 Iframe 내의 페이지 접근방법 황제낙엽 2009.11.12 436
103 외부 라이브러리 (.js) 의 바람직한 동적 로딩 (The best way to load external JavaScript) 황제낙엽 2009.10.05 701
102 숫자값으로의 변환 형태 황제낙엽 2009.09.02 455
101 Boolean 데이터 타입 황제낙엽 2009.09.02 470
100 toString 변환 테이블 황제낙엽 2009.09.02 447
99 URI 인코딩을 해야 하는 문자들 황제낙엽 2009.09.02 416
98 체인 생성자(생성자 체인), 프로토타입 체인 그리고 생성자 재지정 황제낙엽 2009.08.12 411
97 이미지 로드 코드 황제낙엽 2009.06.27 519
96 자동 형변환 (문자열 -> 숫자) 황제낙엽 2009.06.25 489
95 자바스크립트 쿠키 황제낙엽 2009.06.11 454
94 이클립스에 Aptana 플러그인 설치하기 (자바스크립트 개발에 유용한 IDE) 황제낙엽 2009.04.17 468
93 [JavaScript Tutorials] Error handling in JavaScript using try/catch/finally - The Error object and throwing your own errors (해석중) 황제낙엽 2009.04.10 487
92 [JavaScript Tutorials] More leakage patterns (해석중) 황제낙엽 2009.04.10 483
91 [JavaScript Tutorials] Introducing the closure (해석중) 황제낙엽 2009.04.10 996
90 [JavaScript Tutorials] JavaScript and memory leaks (해석중) 황제낙엽 2009.04.08 538
89 [JavaScript Tutorials] Handling runtime errors in JavaScript using try/catch/finally (해석중) 황제낙엽 2009.04.08 3229
88 JavaScript Closures for Dummies 황제낙엽 2009.04.08 708
87 테이블 엘리먼트 생성 스크립트 황제낙엽 2009.04.07 454