jQuery syntax error: #/

前端 未结 4 1479
悲&欢浪女
悲&欢浪女 2020-12-14 07:53

I am currently using jQuery, Twitter Bootstrap and AngularJS for my web application. I\'ve been trying to do routing, but jQuery keeps giving me Syntax error, unrecogn

4条回答
  •  再見小時候
    2020-12-14 08:35

    This issue appear when using jquery v3.* and bootstrap3, because "#" is no longer a valid selector( You can fix it by using instead of and remove attributes href="#" and data-target="#" for dropdowns. Looks like this:

    
     
    

    For tabs, which using it's fixing by replace "#/" from href with "#some_your_id"

提交回复
热议问题