Console工具API


$_          上个表达式的值 $0 - $4  最近选择的5个element $           doucment.querySelector $$         document.querySelectorAll $x         匹配xpath的element clear     清空 copy     复制对象到剪贴板 debug   调试函数 inspect               定位一个方法或node节点 monitor              监听函数,每次调用打印arguments monitorEvents     监听元素事件,事件触发打印event queryObjects      查询一个函数有多少实例



dir                打印对象属性 dirxml           打印对象属性,xml格式 keys             Object.keys values          Object.values table            console.table undebug              去除调试 unmonitor            去除监听函数 unmonitorEvents   去除监听事件 getEventListeners  获取挂载事件监听器 profile([name])         开启一个具名或匿名的profile分析 profileEnd([name])   关闭一个具名或匿名的profile分析   详细: Console Utilities API reference