简体   繁体   中英

How can I use multiple versions of jQuery?

I have a page that requires several versions of jQuery: jquery-1.11.0.min.js , jquery-1.10.2.js , and jquery-ui-1.10.4.custom.js .

I want to use tabs , which requires jquery-1.10.2.js and jquery-ui-1.10.4.custom.js . But I also want to do this image slider , which requires jquery-1.11.0.min.js

The tabs works perfectly without the js for the image slider, and vice versa.

How can I use both???

I tried the following for each one, but that didn't help any.

<script type="text/javascript">
var jQuery_1_10_2 = $.noConflict(true);
</script>

Thanks for the help!

You can' just download the latest jQuery UI for tabs which always supports the latest jquery.

As soon as you load a newer version, it will override the old one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM