There is no problem with the maintained project running under ie9. After adding the new code, it is found that it cannot be fully displayed. After opening the developer tools of ie, you can display the complete one. I searched for a long time but couldn't find the reason. Later, I found that there was an output statement on the console after opening the developer tool. After turning off the developer tools, I found that the prompt 'console' is undefined in the status bar. Why is there no problem with the previous running and the next one not working? I couldn't figure it out, and later added the following code to the code:
The code copy is as follows:
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;
})();
Then the project is ready to run. After searching, I found that it was caused by the problem of ie9's definition of console.