Animation + Ajax+touch module + zepto plug-in in zepto

Animation in zepto There is no animation module in zepto, so fx.js and fx_methods.js need to be introduced separately https://github.com/madrobby/zepto       Show and hide toggle elements <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>zepto</title> <meta name="viewport" ...

Posted by Donnamabob on Wed, 18 Mar 2020 09:40:42 -0700

Do you really understand that Spring solves circular dependency?

Guide reading Articles published the other day Spring boot multi data source dynamic switch and Spring boot: a huge pit for integrating multiple data sources In, it is mentioned that adding @ Primary interface to dynamic data source will cause circular dependency exception, as shown in the following figure: This is a typical constructor dep ...

Posted by luuney on Wed, 18 Mar 2020 09:11:07 -0700

Detailed explanation of JAVA reflection concept and use (super detailed)

Detailed explanation of JAVA reflection concept and use 1, What is reflex? Reflection: the soul of frame design Framework: semi-finished software. Software development can be carried out on the basis of framework to simplify coding Reflection: encapsulates the components of a class as other objects, which is the reflection mechanism Benefits: Y ...

Posted by daz1034 on Wed, 18 Mar 2020 08:38:33 -0700

DOM operation in zepto

DOM operation in zepto Insert operation append appendTo is inserted after the last child element prepend prependTo is inserted before the first child element after insertAfter is inserted after the element as a sibling element before insertbefore is inserted after the element as a sibling element <!DOCTYPE html> <html lang="en"> &l ...

Posted by grahamb314 on Wed, 18 Mar 2020 07:11:54 -0700

Source code analysis of HashMap(JDK1.8)

Source code analysis of HashMap (JDK1.8) This is one of the series that I forgot to read again. Today I have time to write a document and record it. I hope I can slowly understand their excellent ideas from the JDK source code. This paper mainly records the following aspects. 1. Inheritance and implementation structure of HashMap 2. Constructor ...

Posted by andymike07 on Wed, 18 Mar 2020 05:15:50 -0700

Python 3 standard library: filecmp compare file

1. filecmp comparison file The filecmp module provides functions and a class to compare files and directories on the file system. 1.1 sample data Use the following code to create a set of test files. import os def mkfile(filename, body=None): with open(filename, 'w') as f: f.write(body or filename) return def make_example_dir ...

Posted by macattack on Wed, 18 Mar 2020 01:01:41 -0700

Red packet rain of wechat applet implemented by css3

Recently, the company needs to do a wechat red packet rain function. The basic online search is to use canvas, which is not very skilled in canvas, so I wrote one with css. This method works well for apple, but there will be a jam situation on Android. After several optimizations, there will be a little ...

Posted by [Demonoid] on Tue, 17 Mar 2020 08:03:26 -0700

Spring -- Spring IOC, annotation based automatic seedling burning

1. Parameter configuration mode of set [List,Set,Map] and configuration file [] applicationContext.xml <!--Set and configuration parameter injection mode --> <bean id="example" class="cn.goktech.entity.Example"> <property name="interest"> <list> <valu ...

Posted by CrimsonSoul on Tue, 17 Mar 2020 03:47:19 -0700

Main configuration and application of spring MVC

SpringMVC The concept of MVC Model1 mode Model 1: the combination of JSP page and JavaBean does not use the java Servlet form to write the front-end and back-end interactions, almost all of which are in the charge of JSP Model2 mode M: The Model model (JavaBean) is responsible for the data l ...

Posted by raydenl on Mon, 16 Mar 2020 22:18:19 -0700

Understanding Java Inheritance, Aggregation, Composition (Combination), Association, Dependency through UML Class Diagrams

This article will build a project in IDE and write corresponding code through the class diagram shown below. In practice, we will recognize the inheritance, aggregation, synthesis (combination), association, dependency of Java. After you finish this project, you will have a deep understanding of these r ...

Posted by RCS on Mon, 16 Mar 2020 19:20:44 -0700