-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.html
More file actions
74 lines (62 loc) · 1.25 KB
/
Copy pathtest.html
File metadata and controls
74 lines (62 loc) · 1.25 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
/*.parent{*/
/*display:flex;*/
/*}*/
/*.a,.b{*/
/*display:inline-block;*/
/*}*/
</style>
</head>
<body>
<script type="text/javascript">
// function Car(sColor,iDoors,iMpg) {
// this.color = sColor;
// this.doors = iDoors;
// this.mpg = iMpg;
// this.drivers = new Array("Mike","John");
// }
//
// Car.prototype.showColor = function() {
// alert(this.color);
// };
//
// var oCar1 = new Car("red",4,23);
// var oCar2 = new Car("blue",3,25);
//
// oCar1.drivers.push("Bill");
//
// document.write(oCar1.drivers);
// document.write("<br />")
// document.write(oCar2.drivers);
// oCar1.showColor();
// var a ='HelloWorld'.split('').join('');
// alert(a);
// a=5;
// alert(window.a);
// var a=1;
// alert(a);
//alert(typeof []=='array');
//alert(typeof []=='object');
//alert(typeof null=='object');
//alert(typeof null=='null');
var name='people';
function Person(name){
this.name=name;
}
var p=new Person('p2');
</script>
<div class="parent">
<div class="a">
X
</div>
<div class="b">
Y
</div>
</div>
</body>
</html>