-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·100 lines (80 loc) · 1.95 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CROSS运行环境测试</title>
<script type="text/javascript" src="dest/v2015112401/cross.js?v=1.0"></script>
<script type="text/javascript">
cross.importFile("commonCss", "css");
cross.importFile("pageaCss", "css");
</script>
</head>
<body id="index">
<h1>CROSS运行环境测试</h1>
<section class="page">
<p id="page-a" class="page-a"></p>
</section>
<br>
<h2>CSS运行测试</h2>
<section class="module">
<h3>module</h3>
<p class="module-a">这是module-a</p>
<p class="module-b">这是module-b</p>
<p class="module-c">这是module-b</p>
</section>
<section class="widget">
<h3>widget</h3>
<p class="widget-a">这是widget-a</p>
<p class="widget-b">这是widget-b</p>
<p class="widget-c">这是widget-b</p>
</section>
<br>
<h2>JAVASCRIPT运行测试</h2>
<section class="module">
<h3>module</h3>
<p id="module-a"></p>
<p id="module-b"></p>
<p id="module-c"></p>
</section>
<section class="widget">
<h3>widget</h3>
<p id="widget-a"></p>
<p id="widget-b"></p>
<p id="widget-c"></p>
</section>
<section class="service">
<h3>service</h3>
<p id="service-a"></p>
</section>
<script type="text/javascript">
cross.importFile("libJs", "js");
cross.importFile("commonJs", "js");
cross.importFile("pageaJs", "js");
</script>
<script type="text/javascript">
//singleton test
var People = function(){
//private
var age = 18;
//public
this.skin = "white";
this.lan = "CHN"
//public
this.setSkin = function(skinColor){
this.skin = skinColor;
}
this.setLanguage = function(lan){
this.lan = lan;
}
}
var Cookie = function(){
this.taste = "sweet";
this.getTaste = function(){
return this.taste;
}
this.setTaste = function(){
this.taste = taste;
}
}
</script>
</body>
</html>