【发布时间】:2021-08-10 12:15:36
【问题描述】:
我尝试使用以下js,但似乎不可行。 PDF.js 'Hello, world!' example
我该如何解决?
function dispPhoto(file,suffix) {
var $thumbArea = $('#thumbnail'+suffix);
$thumbArea.empty();
$('#fileName'+suffix).html( "" );
$('#MSG_SHOKEN'+suffix).html("");
if(!file || !file.type.match(/^image\/(jpeg|jpg|jpe|png)$|application\/pdf/)) {
return false;
}
var isPdf = Boolean(file.type.match(/application\/pdf/));
var reader = new FileReader();
if (isPdf) {
/*
*
*/
}
【问题讨论】:
标签: javascript jsp thumbnails pdf.js pdf.js.express