Home >Web Front-end >JS Tutorial >Javascript personal notes (not organized, very messy)_javascript skills
==============About the display and hiding of elements==============
Visibility is faster than Display
Let Disappearing and appearing pictures can create interesting effects. There are two ways to achieve this: use the CSS visibility attribute or the
display attribute. For absolutely positioned elements, dialog and visibility have the same effect. The difference between the two is that the element set to
display:none will no longer occupy the space of the document flow, while the element set to visibility:hidden will still retain its original position.
==============A little experience=======================
1. JS variables do not have block scope, and the definitions in the judgment loop are defined in the entire function
2. The parameter of split() is a regular string, so if Zheng Ze’s expression is used, it is special Characters must be escaped when used as parameters
============== Hide the toolbar that pops up when the mouse is moved over the image in the browser======== =====
or