谢邀,angular-ui-router能满足你的需求 https://ui-router.github.io/n... 上面官方地址里面就有demo 一点小说明: <body ng-app="helloworld"> <a ui-sref="hello" ui-sref-active="active">Hello</a> <a ui-sref="about" ui-sref-active="active">About</a> <ui-view></ui-view> </body> ui-sref-active="active" // 这个是ui-router提供的属性,会判断当前在哪个页面,然后添加active这个类,样式我们可以自己改
谢邀,angular-ui-router能满足你的需求
https://ui-router.github.io/n...
上面官方地址里面就有demo
一点小说明: