码迷,mamicode.com
首页 > 其他好文 > 详细

[Debug] Chrome Devtools: Elements - Console Integration

时间:2016-10-25 07:40:02      阅读:253      评论:0      收藏:0      [点我收藏+]

标签:asi   history   spec   listen   ram   int   moni   console   monit   

The Element Inspector in Chrome DevTools offers powerful integration with the console - learn how to programmatically navigate your selected element, how to search through the history and use CSS selectors to control what you‘re looking at and how to quickly and easily listen for events as you debug your application.

 

$0: refer to selected element.

$1, $2, $3, $4: refer to previous element.

 

We can use jQuery even not include the lib:

技术分享

 

We can use xPath to get the elements:

技术分享

 

We can monitor events:

技术分享

 

[Debug] Chrome Devtools: Elements - Console Integration

标签:asi   history   spec   listen   ram   int   moni   console   monit   

原文地址:http://www.cnblogs.com/Answer1215/p/5995286.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!