出現(xiàn)Can not find a java.io.InputStream with the name的錯誤,是因為InputStream為null的緣故,可能是前臺jsp頁面中href="download.action?filename=img3-lg.jpg 沒有傳值
2018-01-26
必須在IE內(nèi)核下才能上傳圖片和文件,谷歌瀏覽器不能實現(xiàn),上傳后的文件在tomcat下的webapps中
2018-01-22
function showPreview(obj){ var pic = document.getElementById("previewImg");var file = document.getElementById("myFile").files[0]; var reader = new FileReader();reader.readAsDataURL(file); reader.onload = function(e){
pic.src=this.result;適用于谷歌瀏覽器
}
}
pic.src=this.result;適用于谷歌瀏覽器
}
}
2018-01-11