Vue's Key attributes, v-for and v-if, v-if/v-show, v-pre do not render, v-once only renders once

key attribute Why add key -- api explanation The special attributes of key are mainly used in the virtual dom algorithm of vue. If key is not applicable, vue will use an algorithm to minimize dynamic elements and try to repair / reuse the same type of elements as much as possible. With key, it rearranges the order of elements based on the chan ...

Posted by michelledebeer on Sun, 03 Nov 2019 14:54:48 -0800

The use of ffmpeg in video conversion

1. Create a Java project In this project, three folders ffmpeg, input and output are created to store the converter ffmpeg.exe, the video files to be converted and the converted video files. The format that ffmpeg can parse: (asx, asf, mpg, wmv, 3gp, mp4, mov, avi, flv, etc.). The file format ...

Posted by locell on Fri, 01 Nov 2019 13:35:37 -0700

[effect realization] a paragraph of text is displayed on the photo, with two lines at most, and the redundant part is indicated by ellipsis.

Idea: how to realize the text displayed on the photo?Take the picture as the background of the div! Design sketch: html: <div class="outer"> <! -- mu lt i line text overflow display -- > < p class = "text" > I'm a very long text, I'm a very long text, I'm a very long text, I'm a very long text, I'm a very l ...

Posted by osiris1603 on Fri, 01 Nov 2019 10:04:40 -0700

js password generator

Password Generato Recently, referring to some password generators on the Internet, a similar password generator has been imitated. The password is mainly composed of "uppercase", "lowercase", "number" and "symbol". The specific style is as follows: development process This paper mainly records the js de ...

Posted by itisme on Fri, 01 Nov 2019 08:36:17 -0700

Cook a delicious CLI

At the beginning, I really want to write a recipe, because of the limited cooking ability, so the title is a lie, ha ha^_~ Today, let's talk about the development of command-line tools (CLI: command-line interface, which will replace the long command-line tool terms with CLI). After reading this article, you will have a more comprehensive un ...

Posted by buducom on Fri, 01 Nov 2019 05:32:51 -0700

Wechat applet request encapsulation (request)

When I started to write an applet, I was quite helpless with the request API of the applet request interface, because I didn't think so much about the urgency of the project, so I started directly. Later, I considered to make a package for unified data processing to reduce development repeatability and optimize code. First, I encapsulate a clas ...

Posted by hasek522 on Thu, 31 Oct 2019 18:49:47 -0700

Mobile border: 1px solution

Problem Description: In order to adapt to various screens, we usually use device independent pixels to layout the page when we write code.On the screen with the device pixel ratio greater than 1, the 1px we wrote is actually rendered by multiple physical pixels, which will cause the phenomenon that 1px looks thick on some screens. There are the ...

Posted by lazy_yogi on Thu, 31 Oct 2019 14:10:26 -0700

css in-depth front-end chapter before 2020, fully grasp the css animation [transform]

Written in front It will be 2020 soon. Do you know that my friends have learned css3 animation this year? Speaking of css animation is a very awkward thing. On the one hand, because the company uses less css animation, on the other hand, most developers are accustomed to using JavaScript to do animation, so many programmers are more excluded to ...

Posted by Koobazaur on Tue, 29 Oct 2019 21:04:25 -0700

By far the most complete spring boot parameter transfer scheme in the whole network

Preface After so many years of development, there must be a lot of small partners who can't figure out how to transfer various types of parameters. Many students are just using them and copying and pasting them. They are still confused when they encounter problems. posture Learn the correct posture of parameter transfer, first say how to ...

Posted by Owe Blomqvist on Tue, 29 Oct 2019 20:53:10 -0700

Implement a calendar component from zero

I. Introduction to calendar components The calendar component is mainly composed of a text input box. After clicking the text input box, the calendar panel will be displayed below the text box. The calendar panel consists of three parts: the head area (which mainly displays the month and year corresponding to the face-to-face calendar panel and ...

Posted by jaikob on Tue, 29 Oct 2019 05:06:20 -0700