-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (36 loc) · 1.11 KB
/
index.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
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
</head>
<body>
<div id="app">
{{msg.value}}
</div>
<script src="dist/vue.js"></script>
<script>
// umd Vue
// console.log(Vue)
// 响应式 object.defaultProperty
let vm= new Vue({
el:'#app', //编译模版编译到的位置
data(){ //初始化数据
return {
msg:{
value:'2'
},
a:'hello',
list:[1,23,6,5],
arr:[{a:1},2]
}
},
props:{},
watch:{}
})
console.log('%cindex.html line:34 vm._data', 'color: #007acc;', vm._data);
</script>
</body>
</html>