自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 ts中form表单弹窗一打开时就自动校验了,手动赋初始值未生效

<el-dialog @open='open()'></el-dialog>@Ref('appForm') appForm!: ElForm; open(){ this.$nextTick(()=>{ this.appForm.resetFields();//将resetFields方法用nextTick包裹,否则报错 })}

2021-02-23 11:07:54 655

原创 简单http请求实现石头剪刀布

//index.htnl<!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

2021-02-07 10:41:13 82

原创 极客学习(1)

石头剪刀布// process.argv --项目启动时输入命令行参数///////////lib.jsmodule.exports=function(playerAction){ let computerAcition//电脑出的手势 var random=Math.random()*3 if(random<1){ computerAcition='rock' }else if(random>2){ computerAcition='scissor'

2021-02-03 17:41:52 184

原创 eslintrc中控制缩进

parserOptions: { parser: 'babel-eslint', sourceType: 'module' }, extends: ['plugin:vue/essential', 'eslint:recommended'], rules: { 'indent': [2, 2, { 'SwitchCase': 1 }] }参考https://blog.csdn.net/pengjunlee/article/d

2021-02-03 11:15:55 933

原创 开发中常用的插件保存

视频播放:VideoPlayerpdf预览:Pdfh5表格滚动:vue-seamless-scrollpdf下载: downloadPdf() { const printOuter = $('#entDetailPage') printOuter.addClass('to-pdf') const that = this // 插件生成base64img图片。 html2canvas($('#entDetailPage')[0]).th

2021-02-01 17:23:43 111

原创 实现自适应等宽

<div class="hello"> <div class="common">1</div> <div class="common">2</div> <div class="common">3</div> </div><style>.hello { width: 100%; display: flex;}//第一种:f.

2021-01-25 15:01:49 113

原创 vue下实现左侧至少选中一个,编辑右侧输入(配合elementui)

//左侧控制是否选中状态<template> <div v-for="item in normOptions" :key="item.key" class="checkbox" > <div class="box"> <div class="box-left" :class="{ active: item.editable }"

2021-01-25 14:42:18 440

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除