2015-05-12 14 views
21

Dopo aver messo il jquery-ui nel primo file linea seguita dal file di bootstrap sto ancora ricevendo questo errore:Errore non rilevato: impossibile chiamare i metodi sul pulsante prima dell'inizializzazione; tentato di chiamare il metodo 'carico'

Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'loading'.

Chiunque può aiutare?

+1

Si prega di aggiungere il codice alla domanda, anche se l'errore è abbastanza auto esplicativo. –

+0

Possiamo vedere qualche codice per favore ???? –

+1

Provare ad implementare prima jQuery, poi jQueryUI, quindi bootstrap – kosmos

risposta

76

It's caused by jquery-ui and bootstrap-button plugins conflict. In fact jquery-ui code js code should go before bootstrap.js, and that solves the problem.

Just put jquery-ui plugins before bootstrap.js

+2

Questo ha funzionato per me. Se ha funzionato per te, dovresti accettare la risposta. – broadbear

+0

ohh .. thx lavora per me –

+0

Grazie! funziona perfettamente – user3655266

Problemi correlati