0

我正在尝试从响应中获取 PDF 字符串,并在浏览器窗口中显示为 PDF。如何使用 javascript 在新窗口中打开 PDFString?

这是我正在使用的片段。

var newWindow = window.open('', 'newwin', 'width=400,height=500');
newWindow.document.open();
newWindow.document.write(response.responseText);
newWindow.document.close();

4

0 回答 0