zoukankan      html  css  js  c++  java
  • FireBug简单的调试JS

    --------------------错误日志-------------------------------------

      console.log("hello world")

    console.log(
    2,4,6,8,"foo",bar)

    console.log(
    "%a,%b","foo",bar) // "%"用于定义量

    console.log(
    "%s is %d years old.""Bob"42).

    ---------------------------简单的测试性能------------------------------

    console.profile(); //性能开始
    console.time("test"); //时间开始
    function Test()
    {
      
    for(var i = 0; i < 10; i++)
        
    {
          console.info(
    "this is a test");
        }
      
    }

    Test();
    console.timeEnd(
    "test"); //时间结束
    console.profileEnd();  // 性能结束

    ---------------------------------------------------------

    console.trace()事件跟踪

    --------------------简单的DOM-------------------------------------

    console.dir(document.getElementById("selCategory"));
    console.dirxml(document.getElementById(
    "sleCategory"));

  • 相关阅读:
    合并字符串中的多个空格
    IfcSpecularRoughness
    IfcSpecularExponent
    IfcPresentableText
    IfcFontWeight
    IfcFontVariant
    uwb ifc模型定位測試
    IfcFontStyle
    IfcGeometricModelResource
    qt6安装
  • 原文地址:https://www.cnblogs.com/bingzisky/p/1374635.html
Copyright © 2011-2022 走看看