我正在做什么-我得到一个响应作为一个二进制的pdf文件从后端,我正在创建Blob,然后objectUrl的blob,并设置的src的iFrame。application/pdf'})
const url = window.URL.createObjectURL(blob) // creating the url with help of URL API
我必须在angularjs中转换xml response to json。我使用的是Rest api,它以xml格式提供响应,但angularjs在通过$http.get()检索时需要json响应。下面是我如何在angularjs中使用rest api。<script>app.controller('myCtrl', fu