angularjs,路由最近做一个web应用,有个需求需要删除angular路由中的#号。 例如: http://example.com/http://example.com/#/abouthttp://example.com/#/contact 需要改成 http://example.com/http://example.com/abouthttp://example.com/contact 这个是angular默认自带的,所以想要删除需要配置一下: $locationProvider.html5Mode(true); 然后再index.html 的header中,指定一个base: 以上所述是小编给大家介绍的AngularJS删除路由中的#符号的方法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对wanshiok.com网站的支持! angularjs,路由
|