Dropifly: image drag and preview plug-in

Plug in dropify Basic example: It can be applied in one basic step, and the rest of the styles can be adjusted by themselves. $('.dropify').dropify({ messages: { 'default': 'Click or drag files here', 'replace': 'Click or drag the file here to replace it', 'remove': 'remove file', 'erro ...

Posted on Tue, 31 Mar 2020 09:36:47 -0700 by cabldawg

Camera drive (I) -- Analysis of V4L2 framework

V4L2: video for linux version 2 is a set of standard video drivers in linux, which supports uvc standard cameras. This article analyzes its core framework. The whole framework of v4l2 is divided into three layers: In the application layer, we can find a device node similar to video0 in the / dev directory. The upper ca ...

Posted on Tue, 31 Mar 2020 03:43:29 -0700 by vwinstead

Are you still using Date?LocalDateTime is recommended!

Time processing is often encountered during project development, but do you really use it right? Understand that static modification of SimpleDateFormat is disabled in the Alibaba Development Manual? By reading this article, you will learn: Why do you need LocalDate, LocalTime, LocalDateTime [new class provided by java8]? The use of the new ...

Posted on Mon, 30 Mar 2020 20:22:38 -0700 by nicolam1

User defined select. It is forbidden to select according to a certain condition, forming the solution of event linkage

During these two days, in the company's project, phtml files are maintained. There is a mutual constraint and user-defined select. It took a long time to solve the problem. Here, the element attribute textContent is mainly used. We need to pay attention to 1> Sequence of events 2> Staging of event content status Th ...

Posted on Mon, 30 Mar 2020 13:27:46 -0700 by kevin99

Analysis of MVVM principle

MVVM definition: MVVM is a shorthand for model view ViewModel. MVVM is to abstract the state and behavior of View. Let's separate the View UI and business logic. Of course, ViewModel has helped us to do these things. It can take out the data of the Model and help to deal with the business logic involved in the View due to the need to display ...

Posted on Mon, 30 Mar 2020 09:48:29 -0700 by jenreb1

XPath for the use of Python 3 crawler (5) parsing library

 Infi-chu: http://www.cnblogs.com/Infi-chu/   XPath: The full name is XML Path Language, which is a language for finding information in XML documents and HTML documents   1. Common rules of XPath Expression description nodename selects all children of this node /Select a direct child from the current node //Select a descendant node from the cu ...

Posted on Mon, 30 Mar 2020 08:00:57 -0700 by Alphamonkey

Use and arrangement of wechat applet pull-down refresh

1, enablePullDownRefresh=true Pull down refresh is a common operation in mobile applications. The drop-down refresh operation is built into the applet framework. The drop-down animation is of three point style. Currently, there is no display for modifying the drop-down progress bar. Note: it is better to set the page background in the config ...

Posted on Sun, 29 Mar 2020 11:15:09 -0700 by AngelG107

Detailed explanation of DOM4J in java object-oriented programming 3

Details of DOM4J in java object-oriented programming 3 (7)   1, Introduction & overview Itcast tools: fast, too many restrictions dom4j: free, more code than itcast tools   Environment construction:       2, Getting started: parsing XML files Three steps of parsing: (purpose: get the root tag)   /* * dom4j Introduction ...

Posted on Sat, 28 Mar 2020 10:04:25 -0700 by fr@nkie

Single instance mode of creation mode

1 Overview The singleton pattern should be the simplest and most complex creation pattern. Because we all know this pattern: it is nothing more than to ensure that there is only one instance of an object in the system. However, it is not easy to realize a perfect singleton mode. 2 single case mode In general, the implementation of the singleton ...

Posted on Sat, 28 Mar 2020 09:40:49 -0700 by SkyRanger

v-for traversing 2D object array in vue

Let's start with an example var a = {}; var b = []; var i =0; while(i<10){ b[i] = a[i] = i++; } console.log('a '+typeof a +' b '+ typeof b); //a object b object Note: arrays are also objects console.log(a); //{ '0': 0,'1': 1,'2': 2,'3': 3,'4': 4,'5': 5,'6': 6,'7': 7,'8': 8,'9': 9 } console.log(b); //[ 0, 1, 2, 3, 4, 5, ...

Posted on Fri, 27 Mar 2020 09:54:40 -0700 by MattDunbar