window.console = window.console || (function () {
var c = {}; c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile
= c.clear = c.exception = c.trace = c.assert = function () { };
return c;
})();
- https://blog.csdn.net/u012966918/article/details/53940194 开F12
- https://blog.csdn.net/qq_34986769/article/details/52161785 写详细的window.console
- https://www.cnblogs.com/luhailin/p/6598900.html 简单window.console