05 2021 档案
摘要:<el-date-picker value-format="yyyy-MM-dd HH:mm:ss" v-model="ruleForm.planTimeStart" type="datetime" placeholder="选择日期" :picker-options="{ disabledDate
阅读全文
摘要:这个是密码的拦截 : [{ required: true, validator: validatePass4, trigger: "blur" }], 同级关系下写下方法,类似定义一个方法,用变量接收 // value 值 是 你 密码拦截的值, callback 是返回的信息,rule 是规则 v
阅读全文
摘要:var fileName = this.from.doc.substring(this.from.doc.lastIndexOf('/')+1); //文件名 var extName = fileName.substring(fileName.lastIndexOf('.')+1); //后缀名
阅读全文
摘要:JS // 获取并且格式化时间 formatter (thistime, fmt) { let $this = new Date(thistime) let o = { 'M+': $this.getMonth() + 1, 'd+': $this.getDate(), 'h+': $this.ge
阅读全文
摘要:template部分: 头像外部加一个 div <div class="user-info-head"> </div> css 部分 <style scoped lang="scss"> .user-info-head { position: relative; display: inline-bl
阅读全文
摘要:正则表达式: @input="form.userName = form.userName.replace(/\s+/g,'')" ( 禁止输入空格) @input="form.phone = form.phone.replace(/[^\d]/g, '')" ( 只能输入数字 ) @input="f
阅读全文
摘要://限制身份证号码的输入 if( !(/(^\d{15}$)|(^\d{17}([0-9]|X)$)/.test(this.verification.cardNo)) ){ this.$u.toast('输入的身份证号长度不对,或者号码不符合规定!15位号码应全为数字,18位号码末位可以为数字或X。
阅读全文
摘要:由于花费了我不少时间才找到的组件,所以记录一下,后面方便自己好找一些,也算是分享出来给各位前端一起用。 npm 下载npm install vue2-flip-countdown --save template 部分 <div style="margin-top:20px;"> <flip-coun
阅读全文