twitter-bootstrap closing alert does not work

后端 未结 5 875
滥情空心
滥情空心 2021-01-04 06:25

I can\'t get it to work. When I click the close button, nothing happens.

here\'s the code:

 
5条回答
  •  Happy的楠姐
    2021-01-04 06:58

    It appears that the order in which you include the Javascript sources is important. First load jQuery, then the Bootstrap Javascript.

    E.g. This fails:

    
    
    

    and this works:

    
    
    

    You'll also see this in the example templates. From the Hero template:

    [...]
    
    
    
    [...]
    

提交回复
热议问题