forked from iamjoel/front-end-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (36 loc) · 966 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<link rel="stylesheet" href="assets/konsole.css">
</head>
<body>
<script src="../vendor/jquery.js"></script>
<script src="assets/konsole.js"></script>
<script>
$(document).ready(function() {
var isDebugger = true;
console.log('log');
console.info('info');
console.warn('warn');
console.error('error');
console.log(JSON.stringify({
name: 'Lily',
age: 18,
info: {
schools: ['Baidai School', 'CX Middle School', 'SY School', 'QH School']
}
}));
for (var i = 0; i < 10; i++) {
console.log('log %d', i + 1);
}
if (isDebugger && console.show) {
console.snap = 'bottom'; // console 出现的位置。left,right,top,bottom
console.show();
}
});
</script>
</body>
</html>