eumnq8 发表于 2021-1-7 08:53:39

ie 6/7/8/9 报console未定义解决方法

js脚本里定义一个适应性强的console对象即可解决
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;
})();

页: [1]
查看完整版本: ie 6/7/8/9 报console未定义解决方法