标签:上传 erro src 多文件 adf button ajax als new
<form id="uploadForm" action="Upload" method="post" enctype="multipart/form-data"> <input id="uploadFile" name="fileupload" multiple="multiple" type="file" value="" />
<input id="btnImportOK" type="button" value="上传" />
</form>
<script src="~/Scripts/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(function () {
bindUploadFile();
})
function bindUploadFile() {
$("#uploadFile").change(function () {
var fileList = $("#uploadForm")[0];
$.ajax(
{
url: "/home",
type: "POST",
cache: false,
data: new FormData(fileList),
contentType: false,
processData: false,
success: function (data) {
},
error: function(data){
}
}
)
})
}
</script>
uploadForm
标签:上传 erro src 多文件 adf button ajax als new
原文地址:https://www.cnblogs.com/yuhaipeng/p/12820230.html