我在 Angular JS 中使用 routeProvider。我的链接看起来像:
www.site.com/profile#/profile/profession/3
Angular JS 指出页面中有错误:
Uncaught Error: Syntax error, unrecognized expression: .nav-tabs a[href=#/profile/profession/3]
最佳答案
你必须像这样给你的 href 表达式添加引号
.nav-tabs a[href="#/profile/profession/3"]
关于javascript - 为什么 Angulars JS 在 URL routeProvider 中给出错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30095035/