IE9's strange compatibility issues have been resolved

     I encountered a difficult browser compatibility problem today. First, let me describe the problem. What I am doing is the home page of a store decoration. I have never paid attention to the browser compatibility problem before. In fact, a tester mentioned it to me a while ago. After the home page of the store has no decoration, the display in IE9 has changed, so I used the sub-IE browser to simulate IE9, and found that there was no problem with the page display on my computer. After checking a lot of information, I F12 the tester's browsing. It turned out that the page automatically switched his browser to the mottled mode. I googled it and finally found the answer, because I output the js code in front of the head of the html, and I changed the position of the js code. It is solved, so I hope that my compatriots who read this article will try not to write js in front of the head in the future.
    Closer to home, today's problem has not been solved, the problem is this: the ie9 page simulated on my browser is normal, the problem is still on the tester's ie9, open the page and find that the store decoration data has not been loaded. , I just opened F12 and wanted to debug it, then refreshed the page, a miracle happened, the page could actually be loaded, oh my, it's broken, I can't check the error message, I researched it for an afternoon, and tried various debugging, In the end, there is no solution, continue tomorrow!
    Follow-up: The reason has been found, because the js code in IE9 is added to the console.log, if the console is not opened, the execution of the js script may be interrupted, so it is recommended to comment out the console.log after the js code is debugged

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325861516&siteId=291194637