jQuery syntax error: #/

前端 未结 4 1476
悲&欢浪女
悲&欢浪女 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:22

    I guess extra slash in the href specifying id of the target. remove them and it should work fine.

    
    

    Bootstrap looks at the href value as id for the target element to be shown as tab content. SO here in this case it would be looking for something with id = #/time which doesn't exist.

    if you want to keep href intact you can use data-target attribute

    Main
    

    Demo

提交回复
热议问题