Use Chrome DevTools
Apr 20, 2014 · 2 分钟阅读

  • Use Ctrl/Cmd+Shift+C to open the DevTools in Inspect Element mode

  • Use $() command for selecting elements

  • Search across all script, stylesheet and snippet files using Ctrl/Cmd+O

  • Search across all of the files loaded for a page for a particular string using Ctrl/Cmd+Opt+F on Mac)

  • Navigate to (or search for) specific JavaScript functions or CSS rules within a file using Ctrl/Cmd+Shift+O

  • Jump to a specific line-number within the editor using Ctrl+G

  • A keyboard shortcut is also available for easily executing a snippet - just select your snippet then use Ctrl/Cmd+Enter to run it

  • Evaluate specific lines of your snippet in the console, you can simply select these within the editor then use Ctrl+Shift+E

  • Add Folder to Workspace for editing any type of source file within the Sources panel and have those changes persist to disk

  • Clear the console's history using Ctrl+L

  • Measure how long something takes using console.time('xxx'), to end the measurement call console.timeEnd('xxx')

  • Use the $_ helper will allow you to access the last console result

  • You can choose one of :active, :hover, :focus or :visited to force the element into one of these states

  • You can replay any XHR (POST or GET) by right-clicking on the request to display the context-menu then selecting “Replay XHR”

  • Right-click/Ctrl-click anywhere in Network panel and select Clear Browser Cache/Network Cache from context menu

  • You can enable ‘Disable cache’ to invalidate the disk cache. This is great for developing, but the DevTools must be visible/open for this to work

see more: Chrome DevTools

← Previous Post Next Post →

Ryun的博客
与其感慨路难行,不如马上出发。

atom css design git html javascript jekyll laravel life mac mobile optimization sublime tool vscode vue
mac

About

你好,❤朋友

这里是 Ryun 的博客 📝

📝记录了我学习 🔎的过程

作为一名前端攻城狮 🦁

希望能和大家一起 🔎

共同进步 🏃

🦁的特长:

  • HTML5
  • CSS3
  • JavaScript
  • Vue.js
  • 微信小程序
  • 熟练配合 Node.js、PHP 和 Laravel
  • 熟练使用各种开发和设计工具

🦁喜欢 🆒🆒的东西

对提升效率和美感的事物有兴趣 😋

欢迎 👏交流


see this hugo-theme-dream-ink