自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 组织鼠标右键

<div @contextmenu.prevent>vue阻止鼠标右键

2019-02-14 17:47:53 146

原创 elementui 上传图片前check

beforeImgUpload (file) { let promise = this.checkImageSize(file) promise.then(() => {}, () => { this.rsForm.image = {} this.imageObject = [] }) return promise},checkImageSize ...

2018-11-29 15:52:45 292

原创 html多行隐藏效果

    display: -webkit-box;    -webkit-box-orient: vertical;    -webkit-line-clamp: 2;

2018-09-19 09:28:33 516

原创 读取资源目录下json文件并转成实体类

//读取String fileName = "mock.json";StringBuffer buffer = new StringBuffer();InputStreamReader ir = new InputStreamReader(PoiController.class.getResourceAsStream("/mockData/" + fileName));BufferedR...

2018-09-12 14:46:44 1115

原创 json传递字符串后端接时间格式

@JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")private Date createTime;@JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")private Date updateTime;

2018-09-05 14:07:56 2079

原创 解决springboot PUT请求接收不到参数问题

@Configuration@EnableWebMvcpublic class WebConfig extends WebMvcConfigurerAdapter { @Bean public HttpPutFormContentFilter httpPutFormContentFilter() { return new HttpPutFormContentF...

2018-09-05 09:34:57 1462 1

原创 批量读取properties文件

ublic static Map<String, String> languageUtils() throws Exception { Map<String, String> languageMap = new HashMap<>(); String[] fileNames = new String[]{"messages_ar.propert...

2018-07-30 09:44:49 368

转载 css伪类

/* Logical Combinations */    :matches() /*:any()*/   /* 匹配 集合内指定 的元素 */    :not()                  /* 排除 满足指定关系 的元素 */    :has()                  /* 匹配 满足指定关系 的元素*/    /* Linguistic Pseudo-clas...

2018-07-18 13:52:47 100

转载 elementUI 自定义rules

resultTypeInput: [{validator: (rule, value, callback) => { if (this.eventSetting.resultType.indexOf(value) !== -1) { callback(new Error('Already existed')) } else { callback() }},tr...

2018-07-16 10:07:56 3642

原创 es6函数声明语句 函数表达式

// 函数声明语句{ let a = 'secret'; function f() { return a; }}// 函数表达式{ let a = 'secret'; let f = function () { return a; };}

2018-07-11 11:28:13 1753

转载 顶替掉原来有的important css样式

一般直接问important的样式不被覆盖,这样是误解的,因为解决办法也需要使用important   解决办法一:   div{font-size:100px!important;}   div{font-size:50px!important;}   这样下面的样式就覆盖了上面的样式,使第一个样式失效   解决办法二:   <div style="font-size:30px!impor...

2018-07-11 10:47:52 3121 1

转载 elementUI Datepicker

pickerOptionsStart: { disabledDate: (time) => { if (this.endTime) { return time.getTime() < new Date().getTime() || time.getTime() > new Date(this.endTime).getTime() } else {...

2018-07-10 10:16:18 619

转载 git使用

Git的分支类型1、Master分支一个项目的代码库应该有且只有一个主分支,所有提供给用户使用的正式版本,都是在这个主分支上,我们称为Master分支。2、Develop分支日常使用的开发分支。这个分支可以用来生成代码的隔夜版本,如果开发功能测试完成后,想正式对外发布,就在Master分支上,对Develop分支进行“合并”(Merge)。3、临时分支除了日常开发设置分支外,还有一种临时分支,以应...

2018-07-03 21:51:15 91

原创 vue 跳转路由传参数两种写法

不在url中拼接参数this.$router.push({name: 'page', params: {eventId: this.id}})在url中拼接参数this.$router.push({path: '/page/edit', query: { eventId: this.id }})

2018-07-03 20:55:01 501

空空如也

空空如也

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

TA关注的人

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