解决办法:
1.注释掉该代码
2、或者加入如下代码即可,本人已经测试过,没有问题。
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;
})();