我在服务器上已经获取到了,pdf的下载地址,但是没有办法展示
html代码
<embed id="upload_master_embed" style=" width: 540PX; height: 820px; " />
js代码
$("#upload_master").show();//展示全部
var baseUrl = window.location.protocol + '//' + window.location.host;
var filePath = baseUrl + top.taskMsgAuthObj.getAuthUrl
(tmService.downloadUrl + '?fileCode=' + files[i].code);//获取到下载地址
$("#upload_master_embed").attr('src', filePath);//用id添加src属性拼接pdf下载地址
不知道为什么不显示,哪位大佬接触过请指点一二,小弟必定感激不尽