我不太了解整个html5mode/hashbangmode业务。
$routeProvider.when('/a/b/:c', {})
这只适用于如果我设置为html5mode。为什么?所有浏览器都支持html5mode吗?
$locationProvider.html5Mode(true)
“作品”我的意思是我可以访问路线参数将得到记录。
$scope.$on('$routeChangeSuccess', function(scope, route) {
console.log(route.pathParams.c)
});