-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathtestscan.html
48 lines (45 loc) · 1.23 KB
/
testscan.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
<!DOCTYPE html>
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<script src="avalon2.js"></script>
<script>
var vmodel = avalon.define({
$id: "test",
a: 1,
arr: [4, 5],
b: {
c: 2,
d: 4
},
ddd: {
ccc: {
bbb: {
aaa: 3
}
}
}
})
avalon.define({
$id: "test2",
c: "c"
})
setTimeout(function() {
console.log("开始变化")
vmodel.b.c = 222
console.log("变化完毕")
}, 2000)
setTimeout(function() {
// vmodel.b.c = 111
}, 4000)
</script>
</head>
<body ms-controller="test">
<div >
<div>{{b[ "c" ]}}</div>
</div>
http://gmigdos.wordpress.com/2010/12/05/regular-expression-to-match-javascript-string-literals/
</body>
</html>