-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathlesson03.html
36 lines (31 loc) · 868 Bytes
/
lesson03.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
<!DOCTYPE html>
<html>
<head>
<title>lesson03</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="../dist/avalon.js"></script>
<script>
var vm = avalon.define({
$id: 'effect',
a: 111,
aaa: {
bbb: {
ccc: 111
}
}
})
vm.$watch('a', function(a,b){
console.log(a, b)
})
vm.$watch('aaa.bbb.ccc', function(a, b,c){
console.log(a, b, c)
})
vm.a = 999
vm.aaa.bbb.ccc = 777
console.log(vm.$model)
</script>
</head>
<body>
</body>
</html>