Bootstrap's javascript works locally but not when deployed to a server

前端 未结 9 1450
刺人心
刺人心 2020-12-15 18:56

I downloaded the barebone example of Twitter\'s bootstrap and customized it. I tested it locally (with WAMP server) and everything works perfectly, both the CSS and the JScr

9条回答
  •  天涯浪人
    2020-12-15 19:38

    The issue might be that you load boostrap.js before jQuery. Locally your browser may be using a cached copy of Jquery, so it works there but not on your live site. Try fixing it by switching those two lines in your code:

    
    
    

提交回复
热议问题