我通過Ajax獲取form頁面。以下是form代碼: <form method="post" enctype="multipart/form-data" class="form-horizontal">
<div class="form-group" style="margin-left:0px;">
<label for="file">注:選擇頭像文件盡量小于2M</label>
<input id="headPortraitFile" type="file" name="portrait">
</div>
<button id="headPortraitSubmit" type="button" class="btn-sm btn-primary">上傳頭像</button>
</form>但是這個form中的input type=“file”在瀏覽器中直接無法選定文件,更別提提交文件了。不知是什么原因?這兩天一直沒有解決,求助大神!??!
Ajax獲取的頁面無法使用input type=“file”標簽嗎?
拉風的咖菲貓
2018-11-15 18:13:39