自己的兼容IE系列的console.log

console.log.apply 在某些浏览器下无法通过if进行验证,只能通过try catch进行验证;

window.zlogs = function(){
          try{
            window.console.log.apply(console,arguments);
        }catch(e){

        }  
}
原文地址:https://www.cnblogs.com/strangerqt/p/4358142.html