Object-oriented programming (encapsulated, polymorphic) Python version (Demo detailed)
This article introduces the knowledge points related to object-oriented programming (encapsulation, polymorphism), learning together and making progress together
For a Python column, see: Life is short - I learn python
Article Directory
1. Packaging
2. Polymorphism
Class and instance attributes
4. Static an ...
Added by cyprus on Tue, 07 Apr 2020 05:58:23 +0300
SpringBoot uses custom annotations to encrypt and decrypt simple parameters (annotation + HandlerMethodArgumentResolver)
Preface
Huang Hansan has returned and has not updated his blog for nearly half a year. This half year's experience is really not easy.
At the moment of the epidemic, the company I interned with did not share difficulties with the employees and directly dismissed many people.
As an intern, I was also relentlessly dismissed.So I have to get read ...
Added by valen53 on Mon, 06 Apr 2020 08:09:19 +0300
Introduction to web front end: css box model + background and list
Value of border style:
none no
dotted dot
dashed dotted line
Solid solid line
Double double solid line
margin:
If two adjacent elements have outer margins set in the vertical direction, the outer margins will be merged
Merge height = the larger of the two outer margins that merge
Actual height of element = top border + top inner margin + co ...
Added by dysonline on Mon, 06 Apr 2020 05:18:26 +0300
Android message processing mechanism: Several overload methods of sendMessage() method in Handler
Use sendEmptyMessage(int what) in Handler to send message
Click the button to send the message and process the message in the Handler. Only one message with the what attribute is sent.
case R.id.button1:
new Thread(new Runnable() {
// Check the Handler's api, which has several ways of sendMessage()
...
Added by peerData on Sun, 05 Apr 2020 14:39:40 +0300
[WPF learning] Chapter 60 create control template
After decades of busy, today finally have time to write blog.
The previous chapter introduces the content related to the working mode of the template, as well as the templates of all the controls under the FrameWorkElement. Next, I'll show you how to build a simple custom button and learn some details about the control template in the process. ...
Added by cutups on Sun, 05 Apr 2020 11:59:56 +0300
JSTL tag loop traversal
I have a collection of back-end servlet s, which is not a specific object, but also a double loop.
<% List list = (List) request.getParameter("list");
So we can't do this again in JSP pages
for(int i=0;i<list.size();i++)
Because. size() is not available.
Tag with JSTL
c: The items property of the fo ...
Added by wannalearnit on Sun, 05 Apr 2020 11:21:47 +0300
Vue common instructions
Instruction is to drive DOM behavior with data and simplify DOM operation. Common instructions are as follows
v-text innertext, cannot parse html tags in text
v-html innerhtml, which can parse HTML tags in text
v-show controls the display and hiding of elements
v-if, v-else-if, v-else meet the conditions to display the corresponding eleme ...
Added by zeodragonzord on Sat, 04 Apr 2020 19:57:10 +0300
Java basic enhancement reflection mechanism
1 Introduction to reflection mechanism
The reflection mechanism of Java refers to that in the running state of a program, you can construct an object of any class, understand the class to which any object belongs, understand the member variables and methods of any class, and call the properties and methods of any object. This dynamic access to ...
Added by chopficaro on Fri, 03 Apr 2020 07:36:48 +0300
Vue shopping cart instance
This is the rendering. It seems very simple. Have you been writing Jquery code for a long time, always thinking about DOM operation? I haven't switched over for a long time. Finally, Vue's attributes are used for control, and the function of multiple attribute selection is realized
Directly on the source code!
index.html
<!DOCTYPE htm ...
Added by safetguy on Thu, 02 Apr 2020 14:18:20 +0300
vue custom panel instruction
vue custom panel instruction
In the development of the project, many panels with mask layer are used. These panels are rigid, fixed in size, fixed in position, unable to minimize and so on. I would like to use a vue custom instruction to solve these problems. For any panel, just add a v-panel instruction to the panel e ...
Added by mudi on Thu, 02 Apr 2020 13:40:58 +0300