标签:exist div return color fun error: debugger pre err
var Debugger = function () { }; //开关,是否显示输出 Debugger.switch = true; Debugger.log = function (message){ try{ if(Debugger.switch){ console.log(message); } }catch(exception){ return ‘Error:the function log is not exist.‘; } } Debugger.switch = false;//关闭控制台输出
标签:exist div return color fun error: debugger pre err
原文地址:http://www.cnblogs.com/lzq035/p/8006875.html