The reason for two jQuery versions on the same page is a little lengthy, but I find myself needing it as different sections of the site are controlled by different parties (it's complicated).
There are 2 script tags in the header:
<script src="jquery.min.js" type="text/javascript"></script>
<script src="jquery-cookie.min.js"></script>
There is then another version of jQuery in the footer. The jQuery in the footer has this line of code running right after it's script tag:
window.$j = jQuery.noConflict();
The issue I'm having is, $.cookie or jQuery.cookie, when being used, returns the error: "jQuery.cookie is not a function"
Is there a way to preserve the jquery-cookie variables as they seem to be lost once the second version is added?
question from:
https://stackoverflow.com/questions/65941643/two-jquery-versions-on-the-same-page-problem 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…