-
Notifications
You must be signed in to change notification settings - Fork 2
/
IE8.html
98 lines (92 loc) · 3.05 KB
/
IE8.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="author" content="Leo Wang" />
<title>使用custom-element-shim</title>
<!--[if lte IE 9]><script>(function(f){window.setTimeout=f(window.setTimeout);window.setInterval=f(window.setInterval)})(function(f){return function(c,t){var a=[].slice.call(arguments,2);return f(function(){c.apply(this,a)},t)}});</script><![endif]-->
<!--[if IE 8]><script src="dep/custom-element-shim/dep/ie8.js"></script><![endif]-->
<!-- <script src="dep/custom-element-shim/dep/dom4.js"></script> -->
<!--[if IE 8]><script src="dep/custom-element-shim/dep/dre-ie8-upfront-fix.js"></script><![endif]-->
<!--[if IE 8]>
<script src="dep/custom-element-shim/dep/es5-shim/es5-shim.js"></script>
<script src="dep/custom-element-shim/dep/es5-shim/es5-sham.js"></script>
<![endif]-->
<script src="dep/esl/2.0.6/esl.js"></script>
<script>
require.config({
'baseUrl': 'src',
'paths': { 'css': 'common/esl/css' },
'packages': [
{
'name': 'custom-element-shim',
'location': '../dep/custom-element-shim/0.0.2/src',
'main': 'document-register-element'
},
{
'name': 'eoo',
'location': '../dep/eoo/0.1.2/src',
'main': 'main'
},
{
'name': 'etpl',
'location': '../dep/etpl/3.0.0/src',
'main': 'main'
},
{
'name': 'k-component',
'location': '../../src',
'main': 'main'
},
{
'name': 'mini-event',
'location': '../dep/mini-event/1.0.2/src',
'main': 'main'
},
{
'name': 'promise',
'location': '../dep/promise/1.0.2/src',
'main': 'main'
},
{
'name': 'lodash',
'location': '../dep/lodash/3.8.0/src',
'main': 'main'
},
{
'name': 'emc',
'location': '../dep/emc/1.0.0/src',
'main': 'main'
}
]
});
</script>
</head>
<body>
<h1>使用webcomponents.js</h1>
<div id="main"></div>
<template id="x-foo-template">
<style>
#container {
display: inline-block;
font-size: 13px;
background-color: #efefef;
border: 1px solid #ccc;
padding: 2px 4px;
}
</style>
<!-- 带下拉菜单的button,例子哦 -->
<div id="container">
<button id="realBtn"><content></content></button>
<select id="selection">
<option value="?">请选择</option>
<option value="a">aaaa</option>
<option value="b">bbbb</option>
</select>
</div>
</template>
<script>
require(['main']);
</script>
</body>
</html>