how to download image in react js?

后端 未结 0 979
青春惊慌失措
青春惊慌失措 2020-12-14 22:59
downloadFile = (url,id) => { 
  fetch(\'https://cors-anywhere.herokuapp.com/\' + url, { method: \'GET\', headers: { \'Content-Type\': \'application/pdf\', }, }) 
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题