studied  pdf.js  
 the cross-domain problem has not been solved. Later, it was found that all mainstream browsers can directly open  pdf  files and provide functions such as downloading / printing 
 so, is it necessary to use  pdf.js  or other  pdf  plug-ins in your project? 
 and after I pass the  pdf  file as a path to the  iframe  tag, the  pdf  file is displayed 
 
html
js
 
 
find a solution!
