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 462
105 javascirpt IME-Mode 설정하기 황제낙엽 2010.08.17 1507
104 Iframe 내의 페이지 접근방법 황제낙엽 2009.11.12 440
103 외부 라이브러리 (.js) 의 바람직한 동적 로딩 (The best way to load external JavaScript) 황제낙엽 2009.10.05 705
102 숫자값으로의 변환 형태 황제낙엽 2009.09.02 459
101 Boolean 데이터 타입 황제낙엽 2009.09.02 476
100 toString 변환 테이블 황제낙엽 2009.09.02 450
99 URI 인코딩을 해야 하는 문자들 황제낙엽 2009.09.02 418
98 체인 생성자(생성자 체인), 프로토타입 체인 그리고 생성자 재지정 황제낙엽 2009.08.12 424
97 이미지 로드 코드 황제낙엽 2009.06.27 524
96 자동 형변환 (문자열 -> 숫자) 황제낙엽 2009.06.25 493
95 자바스크립트 쿠키 황제낙엽 2009.06.11 459
94 이클립스에 Aptana 플러그인 설치하기 (자바스크립트 개발에 유용한 IDE) 황제낙엽 2009.04.17 478
93 [JavaScript Tutorials] Error handling in JavaScript using try/catch/finally - The Error object and throwing your own errors (해석중) 황제낙엽 2009.04.10 502
92 [JavaScript Tutorials] More leakage patterns (해석중) 황제낙엽 2009.04.10 498
91 [JavaScript Tutorials] Introducing the closure (해석중) 황제낙엽 2009.04.10 1013
90 [JavaScript Tutorials] JavaScript and memory leaks (해석중) 황제낙엽 2009.04.08 550
89 [JavaScript Tutorials] Handling runtime errors in JavaScript using try/catch/finally (해석중) 황제낙엽 2009.04.08 3234
88 JavaScript Closures for Dummies 황제낙엽 2009.04.08 726
87 테이블 엘리먼트 생성 스크립트 황제낙엽 2009.04.07 458