jQuery Source Code Analysis data Caching Module

jQuery's data caching module attaches any type of data to DOM elements in a secure way, avoiding circular references between JavaScript objects and DOM elements and resulting memory leaks. Data caching module provides a unified method of data setting, reading and removing for DOM elements and JavaScript objects. Within jQuery, it also provides ...

Posted by jenni on Mon, 14 Oct 2019 01:43:21 +0200

Spring Security OAuth2 Judges Dynamic Permissions Based on Request URI

GitHub address Code cloud address Usually we control permissions by @PreAuthorize("hasRole('ROLE_USER')) annotation, and configuring permission requirements in HttpSecurity. Here, we control access rights based on the requested URI, and we can use annotations to control access rights. Create a new resource project to allocate resources and ...

Posted by bonekrusher on Sat, 12 Oct 2019 21:21:03 +0200

Spring Boot: Spring Boot Timing Task

In the actual project development work, we often encounter the work that needs to do some timing tasks, so how to achieve in Spring Book? 1. Adding dependencies In the pom.xml file, only spring-boot-starter dependencies need to be introduced: List of code: spring-boot-scheduler/pom.xml <dependencies> <dependency> <g ...

Posted by krelian on Sat, 12 Oct 2019 03:13:58 +0200

Graphics To this day, no one knows the native dialog tag (very detailed)

In HTML 5, many semantic tags have been added. For example, footer, header and so on, today's protagonist is dialog tag (vii) As the name implies, it is used to define dialog boxes. At present, only Chrome and Safari support this tag, so it's not used much, but it's really good. Don't worry. There's an official polyfill. Usage method 1. Basic ...

Posted by fuzzy1 on Sat, 12 Oct 2019 02:04:14 +0200

Django_Models field type and simple operation

# [1] Field # AutoField() self-increasing type, usually used on id, is not specified, and gradually ID is automatically added to the model # CharField(max_length=?) Character type must be given maximum length. The default form style is Text Input. # TextField() large text type, > 4000, default form s ...

Posted by fernyburn on Thu, 10 Oct 2019 21:02:24 +0200

7. AOP Creation Agent for Spring Source Analysis 7

1. Prepare to create an agent protected Object wrapIfNecessary(Object bean, String beanName, Object cacheKey) { //1. Finding Enhancers Object[] specificInterceptors = getAdvicesAndAdvisorsForBean(bean.getClass(), beanName, null); if (specificInterceptors != DO_NOT_PROXY) { //2. Creating Agents Object proxy = createProxy(bea ...

Posted by denoteone on Thu, 10 Oct 2019 20:54:33 +0200

21. Behavior-State Model

State Pattern: Allows an object to change its behavior when its internal state changes, and the object appears to modify its class. Its alias is Objects for States, and state mode is an object behavioral mode. The state pattern consists of the following roles: Context: The environment class, also known as the context class, is an object with mu ...

Posted by catreya on Thu, 10 Oct 2019 11:41:38 +0200

CSS counter

Automatic Numbering with CounterCSS counters are like variables. Variable values can be incremented by CSS rules (which track the number of times they are used). To use CSS counters, we will use the following attributes:counter-reset - Create or reset counterscounter-increment - Increase counter valueContent - Insert generated contentcounter() ...

Posted by k.soule on Thu, 10 Oct 2019 05:11:59 +0200

36 Skills to Know in Vue Development [Nearly 1W Words]

Preface Re-Alpha version of Vue 3.x. There should be Alpha, Beta and other versions in the future. It is expected that the official version of 3.0 will not be released until at least the first quarter of 2020.So we should take advantage of the fact that we haven't yet come out to lay a good foundation for Vue2.x.The basic usage of vue is easy t ...

Posted by robert.access on Wed, 09 Oct 2019 17:26:19 +0200

User name duplication checking using native Ajax

title: User name duplication checking using native Ajax (1) date: 2018-10-21 17:35:15 tags: [JavaScript,Ajax] --- A review of Ajax It will be a while before you start learning ajax, and then you use it less. Some of them are unfamiliar. Now we just want to realize the function of checking repetition with Ajax. By the way, review Ajax. About Aja ...

Posted by berridgeab on Wed, 09 Oct 2019 12:23:52 +0200