<span>主題首頁</span>
<div class="img-box">
<img class="img-icon" src="${ctx}/${subject.picUrl}" id="imgs"
alt="" style="width: 100%; height: 100%; top: 0;" /> <input
name="filepathsave" id="filepathsave" type="hidden"
value="${subject.picUrl}" />
</div>
<p class="check-img">
<input type="file" id="files" οnchange="onChangeUploadImage(this)"
multiple="multiple" style="opacity: 1" type="hidden">
<button οnclick="clickFileInput()">選擇圖片</button>
(本格式支持jpg、png等格式)
</p>
</div>
js: $('#files').hide();//讓按鈕隱藏
function clickFileInput(){
$("#files").click();
}
//點擊按鈕時觸發選擇圖片事件