Files
knowledge-kit/Chapter7 - Geek Talk/7.4.md
2020-02-25 17:46:51 +08:00

126 lines
2.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# chrome开发者工具各种骚技巧
对于每个前端从业者来说除了F5键之外用的最多的另外一个键就是F12了。
今天看了一个网站才知道chrome还有各种骚姿势。
网站是:[umaar.com/dev-tips/](https://link.juejin.im/?target=https%3A%2F%2Fumaar.com%2Fdev-tips%2F)
所有的我都看了,这里随便列举几个个人之前不了解,觉得挺有用的。
### 1.曾经,在线调伪类样式困扰过你?
![](https://user-gold-cdn.xitu.io/2018/5/11/1634df09634771d9?imageslim)
### 2.源代码快速定位到某一行ctrl + p
![](https://user-gold-cdn.xitu.io/2018/5/11/1634e3570cd65624?imageslim)
### 3.联调接口失败时后台老哥总管你要response
![](https://user-gold-cdn.xitu.io/2018/5/11/1634e35c4f2022e8?imageslim)
### 4.你还一层层展开domAlt + Click
![](https://user-gold-cdn.xitu.io/2018/5/11/1634e386ca68401d?imageslim)
### 5.是不是报错了,你才去打断点?
![](https://user-gold-cdn.xitu.io/2018/5/11/1634e391d78c2ccf?imageslim)
### 6.你是不是经常想不起来,在哪绑定事件的?
![](https://user-gold-cdn.xitu.io/2018/5/11/1634dfc23d6b8c65?imageslim)
### 7.你是不是打断点时还要去改代码?
![](https://user-gold-cdn.xitu.io/2018/5/11/1634e023e06569dd?imageslim)
### 8.看dom层级的最直观的方式
![](https://user-gold-cdn.xitu.io/2018/5/11/1634e38c30aa44f4?imageslim)
### 9.查一些特定的请求,过滤器用过吗?
![](https://user-gold-cdn.xitu.io/2018/5/11/1634e396bfc4f2a8?imageslim)
### 10.在Elements面板调整dom结构很不方便
![](https://user-gold-cdn.xitu.io/2018/5/11/1634e0c3fb6095d6?imageslim)
###
### 11.想知道某图片加载的代码在哪Initiator
![](https://user-gold-cdn.xitu.io/2018/5/11/1634e1c2fa3c98f7?imageslim)
### 12.不想加载某个文件了?
![](https://user-gold-cdn.xitu.io/2018/5/11/1634e3a5cba66c92?imageslim)
多的就不列举了可以看看开头的网站。看了有几个功能我电脑win10是没有的也可能跟chrome版本有关。
开发者工具的功能确实挺多,多的有时根本用不上,官网教程建议每个前端人员都看看:
[developers.google.com/web/tools/c…](https://link.juejin.im/?target=https%3A%2F%2Fdevelopers.google.com%2Fweb%2Ftools%2Fchrome-devtools%2F)
中文版:
[www.css88.com/doc/chrome-…](https://link.juejin.im/?target=http%3A%2F%2Fwww.css88.com%2Fdoc%2Fchrome-devtools%2F)
本文完。