首页 > 其他 > 详细

[Debug] Chrome Devtools: Elements - Console Integration

时间:2016-10-25 07:39:26      阅读:353      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!