angularjs将java返回的json变换成js所能识别的json

$http({
method: "GET",//请求方式
url: "http://localHost:8080/jeewx/activeController.do?cancelTags&userId="+userId+"&relId="+activeId+"&tagsType=2"
}).success(function (result) {
//if(status==200){
//如果请求成功就-1
console.log(angular.fromJson(result));
if(angular.fromJson(result).msg=="success"){
}
//}
}).error(function (data,status,header,config){
console.log(1);
});
posted @ 2018-03-21 15:54  一叶*秋  阅读(153)  评论(0编辑  收藏  举报

博客侧边栏公告广告位招租