This article will omit some knowledge and details that are too basic
Continue to update, welcome to follow ~
Devtools – Good news for front-end developers, a tool that advanced engineers must forge!
So take a screenshot of DevTools
The current new version has the following menu:
Elements
Look at the DOM treeConsole
The consoleSources
Look at the source code and break pointsNetwork
Logs network request informationPerformance
Runtime performance (parsing JS, evaluating styles, redrawing, and so on)Memory
Memory distribution of JS objects and associated DOM nodesApplication
Record resources (storage information, cache information, images, fonts, scripts, styles, etc.)Security
Check the security of the face pageAudits
Give suggestions for improving page performance
Start this article one by one!
Elements
The dom tree
As the 1 area in the figure above, I believe that everyone is a mature veteran, simple not to repeat, pick some uncommon but practical talk
1. Right-click the menu
Hide element
Hide elements. This must be said, I believe we see the AD or remove the thunder seed (#. # Prude) mask layer when you must think of your professional skills, then you aredisplay:none
orDelete element
? Have a tryHide element
Better to useForce state
Enforcing state is simply adding pseudo classes. This feature is useful for debugging pseudo-class styles:
Break on
Breakpoint debugging, yes, HTML can also break points!
subtree modifications
Triggered when a child node is added, deleted, or movedattribute modifications
Triggered when node attributes are modifiednode removal
Event Listeners
List of event listeners
Select an element and you can see a list of events (bubbling and capturing) that pass through it.
Ancestors All
The click event for the div binding is not displayed if you deselect itFramework listeners
Remove the frame event
Properties
The attributes that the element contains
The diagram contains several categories of properties, which you can click on to see the specific properties, all of which can be invoked through dom.xx
Accessibility Accessibility is used to support h5 visual impairment
Refer to the link
The author CompileYouth