forked from cycgit/vue-date
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
47 lines (34 loc) · 761 Bytes
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>日历</title>
<link rel="stylesheet" href="vue-date.css">
</head>
<body>
<div id="target">
<vue-calendar :date.sync="time"></vue-calendar>
<!-- <vue-calendar></vue-calendar>-->
<h2>当前时间戳:{{time}}</h2>
</div>
<script src="vue.min.js"></script>
<script src="vue-date.js"></script>
<script>
var calendar = window.components.calendar
var time1 = '1454509507'
var time2 = '1454509507000'
var time3 = '1454'
new Vue({
el: '#target',
data:{
time: time2
},
methods:{
},
components:{
'vue-calendar': calendar
}
})
</script>
</body>
</html>