0
這兩個代碼不能一起工作,如果我刪除一個,那麼另一個工作正常。請幫我解決這個衝突。同一頁面上的兩個jquery代碼不工作
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"> <script>
<script src="js/social/socialbars.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="css/social.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script src="js/jquery.tools.min.js"></script>
<script>
$(function() {
$("#prod_nav ul").tabs("#panes > div", {
effect: 'fade',
fadeOutSpeed: 400,
autoPlay : {
enabled : true,
delay: 1500
}
});
});
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36251023-1']);
_gaq.push(['_setDomainName', 'jqueryscript.net']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
有2個版本的任何理由? – Pete
[我可以在同一頁上使用多個版本的jQuery嗎?](http://stackoverflow.com/questions/1566595/can-i-use-multiple-versions-of-jquery-on-the-same -page) – Pete
都在做不同的功能。我可以把它合併成一個嗎? – user3472293