Same page, loading different versions of jquery

Source: Internet
Author: User

Load multiple different versions of the JQuery method on the same page:

1<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >234<title> load multiple different versions of jquery on the same page </title>5<!--3.2.1--6<script type= "Text/javascript" src= "Https://code.jquery.com/jquery-3.2.1.min.js" ></script>7<script type= "Text/javascript" >8var jquery_new = $.noconflict (true);9</script>Ten<!--load jQuery1.11.1 version-- One<script type= "Text/javascript" src= "Http://libs.baidu.com/jquery/1.11.1/jquery.min.js" ></script> A<script type= "Text/javascript" > -var jquery_1_11_1 = $.noconflict (true); -</script> the         -<script type= "Text/javascript" > - alert (jQuery_New.fn.jquery); - alert (jQuery_1_11_1.fn.jquery); +               -Jquery_new (function ($) {$ (' <p> I am the latest ' +$.fn.jquery+ ' version added in. </p> '). AppendTo (' body ');}); +Jquery_1_11_1 (function ($) {$ (' <p> I was ' +$.fn.jquery+ ' version added in. </p> '). AppendTo (' body ');}); A</script> at -<body> - load multiple different versions of jquery on the same page -<br> -</body> -

Same page, loading different versions of jquery

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.