trace的同义词. trace追溯. 越多越好,

Python047

trace的同义词. trace追溯. 越多越好,,第1张

track (back) to

date from

reach (back) to

go back to

date (back) to

都可以表达这个意思

一、Firefox志记录(Logging in Firefox) 通Console记录我再使用烦alert或者document.write进行调试 Firebug提供五种志类型: console.log:记录行信息任何图标提示; console.debug:记录行信息带超链接链接语句调用; console.error():向控制台写入错误信息带错误图标显示高亮代码链接; console.info():向控制台写入提示信息带信息图标显示高亮代码链接; console.warn():向控制台写入警告信息带警告图标显示高亮代码链接; consle打印字符串支持字符串替换使用起像c面printf(%s",a),支持类型包括: %sstring字符串 %d,%i整型 %f浮点 %o象 使用%o象用绿色超链接表示单击带DOM视图 二、组(Grouping) 某类信息特别组利于逻辑划 使用简单参见代码 function consoleGroup(){ var groupname = "Group 一"console.group("Message group %s", groupname)console.log("This is the 一 message in %s", groupname)console.log("This is the 二 message in %s", groupname)console.log("This is the 三 message in %s", groupname)console.groupEnd()goupname = "Group 二"console.group("Message group %s", goupname)console.log("This is the 一 message in %s", goupname)var subgroupname = "Sub group 一"console.group("Message group %s",subgroupname)console.log("This is the 一 message in %s", subgroupname)console.log("This is the 二 message in %s", subgroupname)console.log("This is the 三 message in %s", subgroupname)console.groupEnd()console.log("This is the 二 message in %s", goupname)console.groupEnd()} 三、console.dirconsole.dirxml console.dir象所属性打印疑非用我再需要object.toString支持要firebug查看象变轻松 同我页面元素作象打印要输众信息能迷失繁杂信息找自需要条目 我通组些量信息放入组逻辑更清楚些 function consoleDir(){ function Car(){ this.Model = "Old Model"this.getManu = function(){ return "Toyota"} } var objCar = new Car()console.dir(objCar)console.dir(zoo)var groupname = "Css Style"console.group("The button Style", groupname)console.dir(document.getElementById('consoledir').style, groupname)console.groupEnd()} console.dirxml打印HTML元素XML表示形式. 四、断言(console.assert()) console.assert()用判断表达式否确错误打印错误信息控制台窗口 5、追踪(console.trace()) console.trace()非趣功能我先看看官解释:打印Javascript执行刻堆栈追踪 函数打印程序执行起点终点路径信息 比我想知道某函数何何执行我console.trace()放函数我能够看函数执行路径 函数调试其源代码非用陆、计(Timing) console.time(timeName)用计我需要知道代码执行效率候特别用用自造轮 function consoleTime(){ var timeName = "timer一"console.time(timeName)var a = 0 for(var i = 0i <一00i++){ for(var j = 0j <一00j++){ //console.log('Hello world')a = a + 一} } console.log("a = %d", a)console.timeEnd(timeName)} 漆、Javascript析器(Javascript Profiler) 我通代码console.profile('profileName')或者单击Profiler标签进行Javascript代码执行析功能点类似于console.time()帮助我评估 代码表现能够提供比console.time()更详细信息 三种调用Javascript profiler种代码写入析脚本种单击profile标签命令行输入命令执行 执行看详细输结面各项进行些说明: Function Column:显示调用函数名称; Call Column:显示调用数; Percent Column:显示消耗间比; Own Time:显示函数内部语句执行间包括调用其函数间; Time Column:显示函数始结束执行间; Avg Column:平均间Avg = Own / CallMin &Max Column:显示间; File Column:函数所文件

你是想问它俩做追踪时的区别么?

trail:

go after with the intent to catch【尾随一个目标,去抓住他】

同义词: chase / chase after / tail / tag / give chase / dog / go after / track

trace:

follow, discover, or ascertain the course of development of something【跟随,发现或确认事物的发展,比如追踪一个学生的进步过程】

trace the student's progress

同义词: follow

pursue or chase relentlessly【无情的?追逐,比如猎户追逐鹿】

The hunters traced the deer into the woods

同义词: hound / hunt

希望对你有帮助

求个好评~