jquery state filter selector

Focus state :focus : focus selector select the currently focused element <div> <button>btn1</button> <button>btn2</button> <button>btn3</button> </div> <script> document.onclick = function(){ $(':focus').css('color','red'); } </script> Corr ...

Posted by narimanam on Sun, 05 Apr 2020 12:56:32 -0700

JZOJ5662. [GDOI2018Day1 simulation 4.17] Chi shucunhong

The main idea of the topic Give a binary tree, There are left-hand and right-hand operations, Ask for the product of the size of a subtree. Title Solution Balance trees have an important property: No matter how you rotate, the middle order traversal of this tree will not change. The subtree of a node is a c ...

Posted by ole968 on Sun, 05 Apr 2020 12:50:10 -0700

009 abstract interface polymorphism

Content: abstract, interface, polymorphism ######################################################################################################### 1. Abstract If the method is abstract, then the class must also be abstractAbstract class cannot pass new objectOnly when the subclass covers all abstract methods can the subclass create objects th ...

Posted by cartoonjunkie on Sun, 05 Apr 2020 12:44:48 -0700

Download pictures in IntentService with URL and update them to ImageView

The whole process still adopts the previous logic, that is, when an Activity triggers an event, it is handed over to the IntentService for processing, and the processed result is sent to the internal class of the broadcastReceiver in the Activity for processing, so as to update the UI. The process of downloading the pic ...

Posted by evil turnip on Sun, 05 Apr 2020 12:40:03 -0700

Using js to realize simple and interesting face recognition

In the previous stage, I wanted to play face recognition. I found an interesting plug-in package. Although it is not particularly powerful, it can still achieve results relatively. It is mainly simple. It can be used within 5 minutes. You can play it. Now I will share it with you This plug-in is jquery.facedetection F ...

Posted by webent on Sun, 05 Apr 2020 12:29:08 -0700

[daily] Go language Bible - variable parameter exercises

1. Functions with variable number of parameters are called variable parameter functions, such as fmt.Printf and similar functions2. Add the ellipsis "..." before the last parameter type in the parameter list3. Although in the variable parameter function, the behavior of int type parameter looks like slice type, in fact, the variable p ...

Posted by jalbey on Sun, 05 Apr 2020 12:22:04 -0700

Deep understanding of Glide life cycle management

Author: His Aunt and AuntLinks: https://www.jianshu.com/p/317b2d6bde1b This is the first in a Glide Source Parsing series where you can learn: 1. How Glide binds Activity, Fragment life cycles. 2. How Glide monitors memory and network changes. 3. How Glide handles the life cycle of requests. 1.0 Life Cycle Related UML Class Diagram 2.0 Lifec ...

Posted by Karlos2394 on Sun, 05 Apr 2020 12:16:58 -0700

JAVA8 learning notes - Common built-in interfaces and Stream intermediate operations

I'm ashamed that JAVA 8 has been released for 7 years, and I have been exposed to JAVA for more than 2 years. JDK14 has been released, and I'm still learning new features of JAVA 8, facing the wall for 3 minutes. In the afternoon, I took the time to learn some common built-in interfaces and Stream intermediate operations of Java 8, and took not ...

Posted by Buyocat on Sun, 05 Apr 2020 12:10:31 -0700

Leetcode longest palindrome substring

Child leetcode Longest Palindromic Substring Because I love it. 1005 longest palindrome The longest palindrome string is a string that reads the same from left to right or from right to left. Obviously, the string is left and right symmetrical, so we can find the large string through the small string. For example, the two s ...

Posted by gameshints on Sun, 05 Apr 2020 12:04:34 -0700

Actual record of website graying on April 4

Grey record of website on April 4 It's basically implemented through grayscale No IE 11 support But in the case of IE 11, the performance is different Station B, station A, Taobao, Jingdong, Baidu, Hupu, Kaiyuan China B station html.gray{-webkit-filter:grayscale(.95)} A station html .gray { -webkit-filter: grayscale(10 ...

Posted by johng on Sun, 05 Apr 2020 11:58:36 -0700