我有一个网址http://192.168.10.107:8088/survey/family-info-export 当我在浏览器中点击该URL时,一个csv文件会自动开始下载,但是当我在angularjs的控制器中实现此URL时,我只能读取该文件的数据。但是我想要的是该文件自动下载。有没有办法。这是我的代码。
$http.post("http://192.168.10.107:8088/survey/family-info-export").then(function(response){
$scope.excelData =response.data;
console.log($scope.excelData);
});