arrow function
arrow function always points to "this" of this father element
Some time padding can affect the size of a div
sometime you can not control the hight of a div, as you has already set a very large padding there
Attention:Z-index
Z-index only works on element who has position attribute.
Make a 'div' in the middle of a container
you can use margin: auto to achieve this effect. However, you can not use position. I have try this. I you truly need a positioning, you...
What is real jquery (Core idea)
Jquery is all about event and funciton. The design idea is basically simply. This is: we use '$' to select an element and choose a type...
Main idea of Bootstrap
12 Grids system make the layout of a bootstrap website responsive. The core idea is to manipulate "12 Grids system"
knowledge hierarchy or structure
Another things I need to mention: you need a perfect knowledge structure. Knowledge or technolodge are the same. People need it to some...
JS prototype, Why?
the most important of prototype is to share and reuse.
Some Thoughts about React
01 Simply display some "<div>", whenever you need. Aslo, you can use "map" function to display multiple "<div>". This makes react...
Self-study Strategy
I have summaried lots of self-study strategies, there is a common idea. That is "input" and "output" at the same time. Therefore, you can...
The value of self-study
There are several reasons that lead to study on my own. 01 Build a solid knowledge structure. 02 Easy to extend and summarise. 03 Keep...
Javascript logic flow (How to think)
in a js file, the basic logic is simply By understanding this, it is easy to write a javascript file. First, you need to catch a...
Map and Reduce in Javascript
Similarly in no-sql, Map looks like a function but it return a new array for a variable. 用起来很方便 This is designed for lazy people, as they...
Programming languages are the "same"
it is not hard to find that, people solve problems in a same way. for example, how could you call your parent class? C# 's solution:...
Programming language design obey human mandset
For example, to control the movement of "div" element. You need two thing: 1 define the element (catch by 'id') 2 define the movement...
Why? encapsulation
Encapsulation includes the idea that the data of an object should not be directly exposed. Instead, callers that want to achieve a given...