因为在IE浏览器无此方法,故此重写
方法一: var console = console || {
log: function () {
return false;
}
};
方法二:window.console && console.log('foo');
console.log('123456');
2023-10-19 23:42:46
因为在IE浏览器无此方法,故此重写
方法一: var console = console || {
log: function () {
return false;
}
};
方法二:window.console && console.log('foo');
console.log('123456');