jquery Adaptation IE8 problem

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.