Uncaught Error: Syntax error, unrecognized expression: #/ angularjs and jquery

后端 未结 4 775
长情又很酷
长情又很酷 2020-12-08 22:52

Following error shown up in my console whenever my page loads.

\"Uncaught Error: Syntax error, unrecognized expression: #/about\"

My code is as below:

<
4条回答
  •  遥遥无期
    2020-12-08 23:04

    Ok you gotta remove the slash, '/' with which your html becomes,

    About
    

    If you want to keep the slash, '/' you gotta use data-target attribute as,

    About
    

    More about it here

提交回复
热议问题