Learn 03 JS (get element, event basis, operation element, node get element, focus)
Get elements
document.getElementById('parameter ');
Get id element
console.dir(time);
Print element objects
document.getElementsByTagName('tagname ');
Get elements with tags
var nav = document.getElementById('id name '); var nav1 = nav.getElementsByTagName('tagname ');
You can get some labels i ...
Posted by richclever on Thu, 27 Feb 2020 18:53:51 -0800
Python 3 Standard Library: itertools iterator function
1. itertools iterator function
itertools includes a set of functions for processing sequential datasets.The functions provided by this module are inspired by similar features in functional programming languages such as Clojure, Haskell, APL, and SML.The goal is to be able to process quickly, use memory efficiently, and join together to represen ...
Posted by moagrius on Thu, 27 Feb 2020 18:19:38 -0800
Spring Boot reads properties
Original address: http://www.yiidian.com/springboot/springboot-properties.html
There are two comments in Spring Boot that read the property values of the application.properties or application.yml file.
@Value
@ConfigurationProperties
1 @Value
1.1 Basic Types
1) Configuration
nickname=eric
age=20
2) SpringBoot Read Configuration
/**
* @Valu ...
Posted by dinger on Thu, 27 Feb 2020 09:18:41 -0800
Shiro -- Basic authentication process
Introduction:
In shiro, users need to provide principles and credentials to shiro so that the application can verify the user's identity:
Principles: identity, that is, the identity attribute of the principal, can be anything, such as user name, mailbox, etc., only. A principal can have multiple principals, but only one primary principal, usual ...
Posted by lopes_andre on Wed, 26 Feb 2020 22:52:49 -0800
WPF advanced tutorial routing events
introduce
Like dependency properties, routing events are the upgrade of WPF to traditional. NET events, which makes events have stronger propagation ability.
Definition, registration and packaging
// Let's take an example of a Click event definition
public abstract class ButtonBase : ContentControl
...
Posted by Dani34 on Tue, 25 Feb 2020 18:49:50 -0800
Animation script encapsulated with jquery (no animation, css3 animation, js animation)
Self packaged showhide.js
Including no animation, css3 animation, js animation
Including: fade (fade in and fade out) slideUpDown (slide up and down), slideLeftRight (slide left and right), fadeSlideUpDown (fade in and fade out + slide up and down), fadesleleftright (fade in and fade out + slide left and right)
(function($){
var transition ...
Posted by BDKR on Tue, 25 Feb 2020 07:37:31 -0800
RocketMQ Consumer receiving message process
this section describes the process of Consumer receiving messages, which is divided into Pull and Push modes.
1. initialization
as mentioned in the previous section, there are two ways for a Consumer to accept a client:
Broker finds that the client list has changed and informs all consumers to perform Rebalance
Consumer automatic ...
Posted by Risingstar on Tue, 25 Feb 2020 06:28:19 -0800
Spring boot2. X basic chapter: take you to know about scanning Package automatic registration Bean
Knowledge changes fate, rolling code makes me happy, and I will continue to swim in the open source industry in 2020 < br / >
Take a look at what you like and get into the habit < br / >
Give me a Star, Click to learn about the implementation solution of component-based interface service based on spring boot
We have been using Sp ...
Posted by lazytiger on Tue, 25 Feb 2020 00:54:47 -0800
Design Mode Notes - Prototype Mode
First, the problem of cloning sheep
Now there is a sheep tom, named tom, age 1, color white, please write a program to create 10 sheep with the same Tom properties
2. Traditional Solutions
1.sheep class
package Design Mode.Prototype mode.Traditional way;
public class Sheeep {
private String ...
Posted by _SAi_ on Mon, 24 Feb 2020 19:24:57 -0800
nginx http module configuration merge
When configuring the nginx.conf file, it is easy to see that some of the configuration items can be configured in either an http block, a server block, or a location block.But not all configuration items can be configured anywhere. Depending on the role they play, nginx defines where each configuration block can be used.Since a configuration it ...
Posted by meburke on Mon, 24 Feb 2020 17:51:36 -0800