fetch(url, {
method: "POST",
body: JSON.stringify({
'id': brId
})
}).then(ret => ret.blob()).then(res => {
var blob = new Blob([res], {
type: 'application/pdf;chartset=UTF-8'
})
var fileURL = URL.createObjectURL(blob)
window.open(fileURL)
})
网友评论