The difference between html and text methods in parsing DOM operation module with jQuery source code

html and text can get and modify the content in the DOM node as follows: html(value) gets the innerHTML content of an element in the matching element set, or sets the innerHTML content of each element. Value is optional, which can be an html code or a function that returns html code. If there is no parameter, the innerHTML content of the first ...

Posted by Volitics on Mon, 18 Nov 2019 19:46:09 +0100

Web front end Foundation (15):jQuery Foundation

1. jQuery selector JQuery selector is a powerful embodiment of jQuery. It provides a set of methods to make it more convenient for us to get the elements in the page. 1.1 basic selector Examples are as follows:     <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> </h ...

Posted by rsnell on Mon, 18 Nov 2019 16:43:32 +0100

SDWebImage 4.X source code analysis

SDWebImage UML class diagram SDWebImage flowchart 1.UIImageView+WebCache Interface separation principle: provide specific interfaces for specific functions. Instead of using a single total interface including all functions, these interfaces should be divided according to functions to reduce dependency. Users cannot be forc ...

Posted by TechMistress on Sat, 16 Nov 2019 19:57:39 +0100

echarts dashboard tutorial

1: example of the instrument panel in three minutes after echarts Import related documents <!-- Introduce echarts.js --> <script src="js/echarts.min.js"></script> <script src="js/jquery-1.11.3.js"></script> The original default display is as follows Picture.png Three minu ...

Posted by nainil on Fri, 15 Nov 2019 20:28:38 +0100

JavaBean learning summary

JavaBean is a special class. • design rules for JavaBean s (1) JavaBean is a public class   • (2) the JavaBean class has a common parameterless constructor. (3) all properties of JavaBean s are defined as private. • (4) in JavaBean s, you need to provide two public methods for each attribute. Suppose th ...

Posted by cnperry on Fri, 15 Nov 2019 17:55:58 +0100

Vue responsive Principle & how to realize MVVM bidirectional binding

Preface As we all know, the response of Vue.js is to use the data hijacking + publish subscribe mode. However, it means that as a Xiaobai, he always feels that he can answer it, and finally stops talking and ends up failing. As one of the classic interview questions, in most cases, he can only answer the question of "Object.defineProperty. ...

Posted by samba_bal on Fri, 15 Nov 2019 10:10:21 +0100

Daily use: spring boot custom parameter resolver

SpringBoot custom parameter resolver We all know that SpringMvc's Controller method can receive various parameters, such as HttpServletRequest or HttpServletResponse, various annotations @ RequestParam, @ RequestHeader, @ RequestBody, @ PathVariable, @ ModelAttribute. Where are these parameters obtained? These parameters are parsed for us by di ...

Posted by seidel on Fri, 15 Nov 2019 07:11:18 +0100

Interesting bug - Circular dependency of Java static variables

background Yes, the title is correct, not Spring Bean's circular dependency, but the circular dependency between static variables. Recent projects are simple Maven projects, deployed on the Ali Cloud through K8S, with configuration file reading rules as follows: (1) Priority is given to reading the configuration files in the same directory of t ...

Posted by seidel on Thu, 14 Nov 2019 06:43:31 +0100

Redis cache in AOP mode using AspectCore

This time, the goal is to implement caching by labeling Attribute s, streamline code, and reduce code intrusion into business code. Cached content is the summary content of Service queries, without other high-level functions, to improve the response speed of multiple queries in a short time, and to properly reduce the pressure on the database. ...

Posted by esukf on Thu, 14 Nov 2019 06:40:27 +0100

Better named tuple than tuple in Python

First, thinking 1. What is tuple? Immutable sequence type List that cannot be modified 2. What operations does tuple support? Tuple is a sequence type, supporting all operations of sequence type Value by index one_tuple = ("Excellent", 17, "male", "coding", "Never Stop Learning!") one_tuple[-1] Slicing operation one_tuple = ("Excellent" ...

Posted by sandthipe on Wed, 13 Nov 2019 20:34:40 +0100