forked from RubyLouvre/avalon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtouch.html
42 lines (38 loc) · 1.1 KB
/
touch.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Fvck avalon</title>
</head>
<body ms-controller="main">
<p>
You selected:
<span ms-text="selected"></span>
</p>
<div>
<select ms-duplex-string="selected">
<option ms-repeat="products" ms-attr-value="$val.value" ms-text="$val.display+$val.value"></option>
</select>
</div>
<script src="avalon.js"></script>
<script>
var main = avalon.define({
$id: 'main',
selected: null,
products: {}
});
setTimeout(function () {
main.products = {
"161616": {
"value": "161616",
"display": "融通医疗保健"
},
"168203": {
"value": "168203",
"display": "中融国证钢铁行业"
}
};
}, 0)
</script>
</body>
</html>