/ / Uncaught TypeError: $ (...) .weather non è una funzione - javascript, jquery

Uncaught TypeError: $ (...) .weather non è una funzione - javascript, jquery

Ho un problema con questo codice:

Tipo non rilevato Errore: $ (...). Il tempo non è una funzione

non posso mostrare le informazioni meteo causa il tipo di errore

google.load("maps", "3", {
other_params: "sensor=false"
});
google.load("visualization", "1", {
packages: ["corechart"]
});
google.setOnLoadCallback(function(){
$("#weather").weather({
days: 10,
showall: true
});
});

Ma ho ancora lo stesso problema.

risposte:

0 per risposta № 1

Sembra che jQuery "s $ viene sovrascritto da qualche altro plugin o estensione che stai utilizzando. Prova a usare jQuery anziché $ per evitare questo tipo di problemi. Nel tuo caso, prova:

google.load("maps", "3", {
other_params: "sensor=false"
});
google.load("visualization", "1", {
packages: ["corechart"]
});
google.setOnLoadCallback(function(){
jQuery("#weather").weather({
days: 10,
showall: true
});
});