上面带有/ 404的解决方案不适用于我。但是,这似乎工作
.otherwise({ controller : function(){ window.location.replace('/'); }, template : "<div></div>"});PS。我正在使用Angular 1.2.10

上面带有/ 404的解决方案不适用于我。但是,这似乎工作
.otherwise({ controller : function(){ window.location.replace('/'); }, template : "<div></div>"});PS。我正在使用Angular 1.2.10