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

angularjs 使用ui.router  去掉url中的#号。只要在index.html中添加
<base href="/工程名/" />html

在路由中config下注入:locationProviderhtml5

而后添加  $locationProvider.html5Mode(true);就能够了angularjs

相关文章
相关标签/搜索