当前位置:网站首页>Chrome debugging skills
Chrome debugging skills
2022-07-25 03:25:00 【Magic uncle】
Re launch the request 
Initiate a request at the console
- Select request , choice Copy as fetch
- Paste the code on the console

Copy JavaScript Variable
- Use copy function , And then directly cv Just go

obtain Elements The element selected in the panel
- After selecting the elements ,$0 obtain

Intercept a full screen web page beyond the scroll bar
- f12 Open the developer panel
- command+shift+p Open command
- Input Capture full size screenshot Press enter

- To intercept some selected elements , Select the element and enter Capture node screenshot
One click to expand all DOM Elements
- When the level is deep , Hold down opt key + click
The console refers to the result of the last execution
- Use $_ Reference the result of the last operation
// The first 1 Step
'fatfish'.split('') // ['f', 'a', 't', 'f', 'i', 's', 'h']
// The first 2 Step
$_.reverse() // ['h', 's', 'i', 'f', 't', 'a', 'f']
// The first 3 Step
$_.join('') // hsiftaf
Console selection dom Elements
- "$“ and ”$$" Selectors , Corresponding document.querySelector and document.querySelectorAll
Conditional breakpoints
- Suppose you have the following code , I hope the breakpoint will be triggered when the name of the food is
- If you interrupt directly , Will debug many times
const foods = [
{
name: '',
price: 10
},
{
name: '',
price: 15
},
{
name: '',
price: 20
},
]
foods.forEach((v) => {
console.log(v.name, v.price)
})

边栏推荐
- Question D: pruning shrubs
- Leetcode programming practice -- Tencent selected 50 questions (I)
- B. Difference of GCDs
- Select sort / cardinality sort
- Take a note: Oracle conditional statement
- B. Making Towers
- [golang] golang realizes sending wechat service number template messages
- Openlayers ol ext: Transform object, rotate, stretch, zoom in
- A. Subtle Substring Subtraction
- C language function operation
猜你喜欢

Direct insert sort / Hill sort

C language_ Structure introduction

Brief understanding of operational amplifier
![[stm32f103rct6] can communication](/img/24/71509bd0d74d43ce4a79b8126478ff.jpg)
[stm32f103rct6] can communication

Force deduction brush question 14. Longest common prefix
![[template engine] microservice Learning Notes 6: freemaker](/img/6a/cfe9c5aea0f7fc83d0812237de2256.png)
[template engine] microservice Learning Notes 6: freemaker

PHP record

Riotboard development board series notes (6) -- buildreoot building system image

Learning notes - talking about the data structure and algorithm of MySQL index and the introduction of index

JS construct binary tree
随机推荐
mysql_ Master slave synchronization_ Show slave status details
Matplotlib tutorial (I) [getting to know Matplotlib first]
Secondary vocational network security skills competition P100 web penetration test
Task02 | EDA initial experience
Dc-1-practice
Algorithmic interview questions
Secondary vocational network security skills competition P100 dcore (light CMS system) SQL injection
How chemical enterprises choose digital service providers with dual prevention mechanism
Eslint error
What is technical support| Daily anecdotes
Can bus baud rate setting of stm32cubemx
Backtracking to solve subset problem
Using one stack to sort another stack
NVM installation and use
Vscode configuration, eslint+prettier combined with detailed configuration steps, standardized development
Image processing based on hog feature
Use go language to import Doris data through stream load
Bubble sort / heap sort
Function of each layer of data warehouse
Take a note: Oracle conditional statement