angularjs 使用ui.router 去掉url中的#号

来源:互联网 发布:大学英语网络课程 编辑:程序博客网 时间:2024/05/16 08:50
angularjs 使用ui.router  去掉url中的#号。只要在index.html中添加
<base href="/工程名/" />

在路由中config下添加  $locationProvider.html5Mode(true);就可以了


0 2