angularjs 使用ui.router 去掉url中的#號。只要在index.html中添加<base href="/工程名/" />html
在路由中config下注入:locationProviderhtml5
而後添加 $locationProvider.html5Mode(true);就能夠了angularjs