Package component El upload: upload a single picture through v-model

The El upload image in the element UI has been encapsulated twice. (by default, everyone has a certain vue foundation, and there are only a few details.) In the project, we mainly get pictures or other parameters. Here is the Guid returned after uploading So I have concentrated on the upload actions, such as the input v-model to get the par ...

Posted on Sat, 16 May 2020 10:09:45 -0400 by Dr Evil

MySQL date plus minus

1. addtime() is the date plus the specified number of seconds select addtime(now(),1); -- Plus 1 second 2. adddate() can be used in two ways. The second parameter is to add the specified number of days to the date, and the second parameter is to add the specified interval time to the date select adddate(now(),1); -- Plus 1 day select adddate ...

Posted on Fri, 15 May 2020 10:26:49 -0400 by jwrightnisha

[explanation] uva1104 chips challenge

Original question gate Topic analysis Given an n*n chip. '. Indicates that a part can be placed in the grid. 'C' indicates that a part has been placed in the grid (cannot be removed). '/' means that the grid cannot place parts. It is required to place as many parts as possible on the existing basis of the chip, so that: Row i has the s ...

Posted on Fri, 15 May 2020 03:55:20 -0400 by clodius

Use of java String.format()

General type formatting The format() method of the String class is used to create formatted strings and connect multiple string objects.Students who are familiar with C should remember the sprintf() method in C, which has similarities.The format() method has two forms of overload. Form (String format, Object... args) The new string uses the loc ...

Posted on Thu, 14 May 2020 23:07:01 -0400 by Nommy

Flink Time Semantics and Watermarks

Article Directory 1. Time Semantics in Flink 2. Introduction of EventTime 3. Watermark (Water Level) 3.1 Basic concepts Features of 3.2 watermark 3.3 Transfer of watermarks 3.4 Introduction of Watermark Assigner with periodic watermarks Assigner with punctuated watermarks IV. Use of EvnetTime in ...

Posted on Thu, 14 May 2020 12:25:44 -0400 by Trevors

My jdk source code: String is a special and powerful class!

1, Overview String class is a special existence in java. Although it is not a basic type, it is frequently used. This is mainly because the value of the string object is a constant. We can see why it is a constant in the source code below. Because of this feature, it is thread safe. Next, let's analyze the source code in depth and uncover the ...

Posted on Wed, 13 May 2020 15:20:55 -0400 by arion279

Using AutoFac in WebApi

Using AutoFac in WebApi (I) The previous article said how to use AutoFac, but there is still a problem: when an interface has multiple implementation classes, how to distinguish the implementation classes? There are many solutions, such as named < T > and so on, but they all need to register separately. If it is less, it will be a bit tro ...

Posted on Wed, 13 May 2020 10:18:58 -0400 by FrozNic

How to solve the atomicity problem in JAVA Concurrent Programming

stay Source of concurrent programming BUG In this paper, we first understand the three bug sources of concurrent programming: visibility, atomicity and order. stay How to solve visibility and atomicity In this article, we have roughly understood the solution of visibility and order. Today, it's the last big bug, which is atomicity. Knowledge re ...

Posted on Mon, 11 May 2020 15:31:43 -0400 by xSN1PERxEL1TEx

Zoj2112 dynamic ratings (overall binary + tree array)

Title Link analysis: This problem has modification operations, so we need to do something about the operation processing: To modify an operation, we will change it into two operations: delete and add scanf("%d%d",&x,&y); tot++; q[tot].x=a[x];q[tot].y=-1;q[tot].type=1;q[tot].id=x; //delete y=-1 tot++; a[x]=y; //Maintenance se ...

Posted on Mon, 11 May 2020 12:08:00 -0400 by dbarron87

Zoj2112 dynamic ratings (overall binary + tree array)

Title Link analysis: This problem has modification operations, so we need to do something about the operation processing: To modify an operation, we will change it into two operations: delete and add scanf("%d%d",&x,&y); tot++; q[tot].x=a[x];q[tot].y=-1;q[tot].type=1;q[tot].id=x; //delete y=-1 tot++; a[x]=y; //Maintenance se ...

Posted on Mon, 11 May 2020 11:55:12 -0400 by doforumda