摘要:
<template> <div id="app"> <h3>{{ timeFormat }}</h3> </div> </template> <script> export default { name: "App", data() { return { // 用于显示时间的变量,是一个HH:MM: 阅读全文
摘要:
1.将json对象转化为json字符串,再判断该字符串是否为"{}" var data = {}; var b = (JSON.stringify(data) == "{}"); alert(b);//true 2.for in 循环判断 var obj = {}; var b = function 阅读全文
摘要:
// const add = (x) => x + 5; // const multiplication = (x) => x * 5; // const subtraction = (x) => x - 5; // const division = (x) => x / 5; // const h 阅读全文
摘要:
data() {}, provide() { return { reportParent: this } }, data() {}, inject: ['reportParent'], 阅读全文
摘要:
// 获取明日日期 GetDateStr(AddDayCount) { var dd = new Date(); dd.setDate(dd.getDate() + AddDayCount); //获取AddDayCount天后的日期 var y = dd.getFullYear(); var m 阅读全文
摘要:
function CompareDate(t1,t2) { var date = new Date(); var a = t1.split(":"); var b = t2.split(":"); return date.setHours(a[0],a[1]) > date.setHours(b[0 阅读全文
摘要:
::v-deep.date-picker .el-input__inner { padding: 0 15px; // 这个15是el-input组件默认的值 } ::v-deep.date-picker .el-input__prefix{ right: 5px; left: unset; } 阅读全文
摘要:
index <!-- 报名信息填报 --> <template> <div v-loading="loading" class="container-box"> <dynamic-form ref="dynamicForm" v-model="form" :form-config="formConf 阅读全文
摘要:
<!-- 报名信息填报 --> <template> <div class="container-box"> <el-form ref="form" :rules="rules" show-message :inline-message="true" :model="form" label-widt 阅读全文
摘要:
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.9/vue.js"></script> <div id="app"> <example :tags="['h1','h2','h3']"></example> </div> <script> 阅读全文