Regular expressions for shell Scripting (awk, sort, uniq tools)

Regular expressions for shell Scripting (3) 1. Preface The first two articles mainly introduce the concept and function of regular expression, give a conceptual description of basic regular expression and extended regular expression, and introduce grep and sed commands in shell "Three Swordsmen". This article will introduce awk, the ...

Posted on Fri, 06 Dec 2019 05:56:08 -0800 by Donny Bahama

upload image and verification summary of form form in elementUI

The user-defined verification method, because my project is, according to the situation, you can choose whether there is a graph, so I define a variable hasFmt,When it is false, it will ask to upload. Use this verification method, which is declared in rules var valiIcon = (rule, value, callback) => { // Image verification if (!this.ha ...

Posted on Fri, 06 Dec 2019 06:36:14 -0800 by Rhysickle

The way of learning of Vue Part 10: the realization of simple calculator

The first nine chapters explain some basic knowledge of vue, that is to say: apply what we have learned. Today we will use the first nine chapters to simulate and realize the simple function of calculator. The value of the project is not high, and it is purely to deepen our grasp of what we have learned. Pre school preparation: You need to mast ...

Posted on Fri, 06 Dec 2019 06:24:23 -0800 by selenin

How to read / convert InputStream to String in Java?

If you have a java.io.InputStream object, how do you handle it and generate a String? Suppose I have an InputStream that contains text data, and I want to convert it to a String, for example, I can write it to a log file. What is the easiest way to accept an InputStream and convert it to a String? public String convertStreamToString(I ...

Posted on Fri, 06 Dec 2019 06:17:43 -0800 by KevinCB

JavaScript learning notes DOM

Chapter 5 Web page interaction - Document object model 1 briefly introduce DOM, which is a tool to interact html with javascript. [note when using innerHTML: the content in html is loaded according to the order of HTML itself. Therefore, js corresponding code should be placed after HTML] Question: * when document.getelementby id does not exist, ...

Posted on Fri, 06 Dec 2019 06:11:15 -0800 by littlejones