Ho ricevuto questo errore che dice che jQuery non è definito. Voglio usare twitter bootstrap e jQuery-UI. Nel mio <head>
ho aggiunto CSS e JS necessari. Ho notato che la pagina jQuery-UI utilizza 1.9.1 jQuery e l'ultima versione è 1.10.2. Quindi presumo ci sia una sorta di conflitto in corso. Il bootstrap di Twitter richiede jQuery in modo che possa causare l'errore. O forse sto facendo qualcosa di sbagliato.jQuery non è definito twitter bootstrap
Responsabile:
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
Errore:
Uncaught ReferenceError: jQuery is not defined bootstrap.min.js:6
(anonymous function) bootstrap.min.js:6
Jquery ha bisogno di essere elencati prima di bootstrap. –
Perché stai includendo due versioni di jQuery? – j08691
@ j08691 Bene il sito di interfaccia utente jQuery collegato per utilizzare quella versione e ho cercato alcune informazioni sulla compatibilità con le versioni precedenti di JS. Ho letto che è buono ma a volte possono esserci degli errori quindi ho incluso entrambi. – Liondancer