H5加载PDF插件
无
无需引用css或js
<div style="padding-top: 10px" class="containter">
<iframe style="height: 100%;width: 100%"></iframe>
</div>
apiready = function () {
var url = 'http://pyfei83b7.bkt.clouddn.com/%E7%A7%91%E6%8A%80%E4%BC%81%E4%B8%9A%E7%BB%9F%E8%AE%A1%E8%A1%A8%E6%A0%BC.pdf';
var IfUrl = '../script/pdfjs/viewer.html?file=' + encodeURIComponent(url);
$api.attr($api.dom("iframe"), 'src', IfUrl);
}
如需修改工具条,可以在viewer.html修改