forked from RubyLouvre/avalon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest1.html
33 lines (33 loc) · 921 Bytes
/
test1.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
<!DOCTYPE html>
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<script src="avalon.js" type="text/javascript"></script>
<script>
var model = avalon.define("test", function(vm) {
vm.data = {}
})
setTimeout(function() {
var data = {
a: 1,
b: 2,
c: 3
}
model.data = data //这样正常
// avalon.mix(model.data, data) //这样会报错
}, 1000)
</script>
<style>
#aaa{
width: 100%;
height:200px;
background:green;
}
</style>
</head>
<body ms-controller="test">
<input ms-duplex="data.a"/>
</body>
</html>