关于IE8和IE9下出现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;
})();
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;
})();
关于img src属性如果未获取到,而IE下会显示出待未加载出图片的问题。
onerror
onerror = “this.style.display = 'none'”;
IE8 不支持rem
以及bootstrap,的栅格模型,IE8也不能很好的兼容。