In the process of developing code, programmers use the console as a means of debugging code procedures.
Publish to a test production environment and discover that IE8 has a load error. Use the developer tools to debug and find that you can bypass the problem.
Search through the web and make corrections in the project.
The following measures may be effective:
1, remove the console code (because it is debugging code, does not affect the use of online).
2, in the Basic JS script file to add:
1(function() {2 varmethod;3 varNoOp =function () {};4 varMethods = [5' Assert ', ' clear ', ' count ', ' Debug ', ' dir ', ' dirxml ', ' ERROR ',6' Exception ', ' group ', ' groupcollapsed ', ' groupend ', ' info ', ' log ',7' Marktimeline ', ' profile ', ' profileend ', ' table ', ' time ', ' timeend ',8' Timeline ', ' timelineend ', ' timeStamp ', ' trace ', ' warn '9 ];Ten varLength =methods.length; One varConsole = (Window.console = Window.console | | {}); A - while(length--) { -METHOD =Methods[length]; the - //Only stub undefined methods. - if(!Console[method]) { -Console[method] =NoOp; + } - } +}());
Js about console in the compatibility of IE under the problem