tracer.js

来自「用最近的dojo1.2.1制作前端的ajax购书网站」· JavaScript 代码 · 共 39 行

JS
39
字号
/*	Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.	Available via Academic Free License >= 2.1 OR the modified BSD license.	see: http://dojotoolkit.org/license for details*/if(!dojo._hasResource["dojox.lang.aspect.tracer"]){dojo._hasResource["dojox.lang.aspect.tracer"]=true;dojo.provide("dojox.lang.aspect.tracer");(function(){var _1=dojox.lang.aspect;var _2=function(_3){this.method=_3?"group":"log";if(_3){this.after=this._after;}};dojo.extend(_2,{before:function(){var _4=_1.getContext(),_5=_4.joinPoint,_6=Array.prototype.join.call(arguments,", ");console[this.method](_4.instance,"=>",_5.targetName+"("+_6+")");},afterReturning:function(_7){var _8=_1.getContext().joinPoint;if(typeof _7!="undefined"){}else{}},afterThrowing:function(_9){},_after:function(_a){}});_1.tracer=function(_b){return new _2(_b);};})();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?