懒羊羊
2023-11-14 8286c62256f23bc2367a6729c0f46f84215e380b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if (typeof(console) == "undefined") {
  var console = {
    info: function(){},
    warn: function(){},
    error: function(){},
    log: function(){},
    time: function(){},
    timeEnd: function(){}
  };
}
 
if(!Array.isArray) {
  Array.isArray = function (vArg) {
    return Object.prototype.toString.call(vArg) === "[object Array]";
  };
}
 
if (!Object.isSVGElement) {
  Object.isSVGElement = function(vArg) {
  var str = Object.prototype.toString.call(vArg);
  return (str.indexOf("[object SVG") == 0);
  };
}