【发布时间】:2015-06-17 10:32:47
【问题描述】:
app.js
.when('/ModifyStructure/{c}', {
templateUrl: 'views/ModifyStructure.html',
controller: 'ModifyStructureCTRL'
}
方法
$scope.editST = function (ids) {
var c = ids.substring(1, 3);
$location.path('http://localhost:8080/structure/ModifyStructure/' + c);
}
为什么在执行此方法时,导航器会将我重定向到'/'路径?
【问题讨论】:
-
尝试使用
$location.path('/ModifyStructure/' + c);
标签: javascript angularjs rest spring-boot