zoukankan      html  css  js  c++  java
  • 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分析
     

  • 相关阅读:
    Java 注解
    java多线程
    webstorm配置Monokai-Sublime.jar主题
    express
    npm与package.json
    Node require方法加载规则
    js伪数组转数组
    node中的Console
    Node.js核心模块-url
    服务端渲染SSR和客户端渲染CSR
  • 原文地址:https://www.cnblogs.com/mengff/p/15733067.html
Copyright © 2011-2022 走看看