12345678910111213141516171819202122232425262728293031 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- </head>
- <body>
- <div id="app"></div>
- <script src="../vue.js"></script>
- <script>
- var app = new Vue({
- el:"#app",
- data:{},
- // 方法
- methods: {
- formData() {
- var data = new Date();
- var year = data.getFullYear();
- var mouth = data.getMonth() + 1;
- var day = data.getDay();
- var hour = data.getHours();
- var minutes = data.getMinutes();
- var seconds = data.getSeconds();
- var time =
- }
- },
- })
- </script>
- </body>
- </html>
|