ajaxUploadFile文件上传

阎智
2023-12-01
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/ajaxFileUpload.js"></script>
<form  id="fo" enctype="multipart/form-data">
<input name="files" type="file" id="files"  multiple="multiple">
<input type="button" value="........" "ff()">
</form>


function ff() {
    $.ajaxFileUpload({
        url: "/t8",
        fileElementId:"files",
        Type: "post",
        dataType: "json",
        success:function (data,status) {
            console.log(data+"..........."+status);
        },
        error:function (data,status,e) {
            console.log(data+"..........."+status+"........"+e);

        }
    });
}
 类似资料: