problems with jquery adaptation IE8
Various versions of jquery download link: http://www.jq22.com/jquery-info122
Here are a few of the conditions that have been met in the past few days
1,mac Computer Safari under the development of a user agent function, can be simulated IE browser, the pro-test is invalid, ie the problem it has no.
2, on-line search to jquery1.9 version can be adapted to IE8, pro-Test invalid.
3,win10 and Win7 's IE8 to IE's judgment has certain difference, can adapt to the jquery version also has the difference, in own WIN10 the computer to run the good code, the next day the confidence to let the test sister paper can test, the result a sentence or not, the whole person is not good.
The company Mac computer can not be debugged, can only go through the test, ran to sister paper over there with her computer debugging, poor my legs ah. Okay, nonsense, here's my solution:
WIN10 System The following code, please test valid:
<script language= "JavaScript" > // determine if it is IE browser if(navigator.appname = = " Microsoft Internet Explorer ") { if(Navigator.appVersion.match (/7./i) = = ' 6. ' | | Navigator.appVersion.match (/7./i) = = ' 7. ' | | Navigator.appVersion.match (/7./i) = = ' 8. ' { document.write (' <script type= "Text/javascript" src= "./js/jquery-1.3.2.min.js" ><\/ Script> '); } } </script>
The Win7 system can be resolved with the following code
<!--[if LTE IE 8]> <script> console.log (' This is IE8 '); document.write (' <script type= ' Text/javascript "src="./js/jquery-1.4.2.min.js "><\/script>"); </script> <![ Endif]-->
jquery Adaptation IE8 problem