当我尝试调用这个控制器时,它给了我一个错误。
hiren.controller('hirenz' , function($scope , $http , $location , $routeParams){
$http.post((rootURL + "music") , {'alpha' : $routeParams.alpha , 'name' : $routeParams.name ,
'album' : $routeParams.albumname }).success(function(data){
var parsedJson = JSON.parse(data) ;
console.log(parsedJson.name);
});
});
这里是我从服务器调用的"data"数据
{
"name": [
"Adhar - Adhar ",
"Adhar - Adhare Opshori ",
"Adhar - Aj Neshay "
],
"url": [
"http://music-com-bd.com/Music/A/Adhar/Adhare Opshori/Adhar - Adhar (music.com.bd).mp3",
"http://music-com-bd.com/Music/A/Adhar/Adhare Opshori/Adhar - Adhar (music.com.bd).mp3",
"http://music-com-bd.com/Music/A/Adhar/Adhare Opshori/Adhar - Adhar (music.com.bd).mp3"
]
}