封装方法实现console.log

 function log(){
     console.log.apply(console,arguments);
   }

  

原文地址:https://www.cnblogs.com/crazy-rock/p/14388065.html