liuyg
2021-07-02 25ce610f6ecca7325e7a743dc032c4a76559c63d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(function(con) {
  'use strict';
  try{
    var prop, method;
    var empty = {};
    var dummy = function() {};
    var properties = 'memory'.split(',');
    var methods = ('assert,clear,count,debug,dir,dirxml,error,exception,group,' +
       'groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,' +
       'table,time,timeEnd,timeStamp,trace,warn').split(',');
    prop = properties.pop();
    while (prop) {
      con[prop] = con[prop] || empty;
      prop = properties.pop();
    }
    method = methods.pop();
    while (method) {
      con[method] = con[method] || dummy;
      method = methods.pop();
    }
  }catch(err){
    alert(err);
  }
})(this.console || (window.console = {}));