Vue日历控件

前端之家收集整理的这篇文章主要介绍了Vue日历控件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
<html>

head>
    Meta charset="utf-8"http-equiv="X-UA-Compatible" content="IE=edge"title>测试</<!-- 引入样式 -->
    link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
bodydiv id="app"el-date-picker
            v-model="value1"
            type="datetime"
            format="yyyy-MM-dd hh:mm"
            value-format
            placeholder="选择日期时间"el-date-pickerel-button type="primary" @click="clickBtn">打印选择的时间el-buttondiv 引入组件库 -->
script ="text/javascript" src="./js/vue.js"></scriptsrc="https://unpkg.com/element-ui/lib/index.js"="text/javascript">
    new Vue({
        el: "#app,data: {
            value1: ""
        },methods: {
            clickBtn: function () {
                console.log(this.value1);
            }
        }

    });
>

猜你在找的Vue相关文章