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;//关闭控制台输出

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-12-25
  • 2022-01-15
  • 2021-09-16
猜你喜欢
  • 2021-12-30
  • 2022-12-23
  • 2021-06-29
  • 2021-08-11
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案