1
0
mirror of synced 2025-12-08 06:38:00 +08:00

chore(console): small changes

This commit is contained in:
redhoodsu
2019-11-01 19:59:33 +08:00
parent bf3d4c8ce3
commit 5c182696b1
3 changed files with 17 additions and 7 deletions

View File

@@ -43,7 +43,10 @@
<a href="#" id="log">Log</a>
</li>
<li>
<a href="#" id="heavy-log">Heavy Log</a>
<a href="#" id="log-10000">Log 10000</a>
</li>
<li>
<a href="#" id="log-1000">Log 1000</a>
</li>
</ul>
</nav>
@@ -165,11 +168,16 @@
for (var i = 0; i < 10000; i++) arr.push(i);
console.log(arr);
});
addClickEvent('heavy-log', () => {
addClickEvent('log-10000', () => {
for (let i = 0; i < 10000; i++) {
console.log(location, i);
}
});
addClickEvent('log-1000', () => {
for (let i = 0; i < 1000; i++) {
console.log(location, i);
}
});
</script>
<script>
eruda.init();