console.log() 替代函数

var log = console.log.bind(console);
log('d')

原文地址:https://www.cnblogs.com/Baronboy/p/7390436.html