-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
59 lines (56 loc) · 1.04 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script>
console.time('a')
</script>
<link href="https://cdn.bootcss.com/bootstrap/4.1.1/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<div>123</div>
</body>
<script>
console.timeEnd('a')
</script>
<script src="https://cdn.bootcss.com/bootstrap/4.1.1/js/bootstrap.js"></script>
</html> -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style>
.div1{
width: 100px;
height: 100px;
border-radius: 50px 0 0 50px;
background: #ff0000;
}
.div2 {
}
</style>
<body>
</body>
<div class='div1'>
</div>
<div class='div2'></div>
<script>
var string = 'test';
document.write('<scr' + 'ipt> console.log(string);arrfam([1]);console.log(num);</' + 'script>')
</script>
<script>
var num = 456;
function arrfam(arr) {
if (arr instanceof Array) {
console.log('is Array');
}else{
console.log('is string');
}
}
arrfam(string);
arrfam([string]);
</script>
</html>