基于 iframe 文件上传的 jQuery Ajax 传输插件 jQuery-Iframe-Transport

码农软件 · 软件分类 · jQuery 文件上传 · 2019-12-13 19:29:45

软件介绍

jQuery-Iframe-Transport 是一个基于 iframe 文件上传的 jQuery Ajax 传输插件,通过隐藏的 iframe 来实现传输。

要使用这个插件,只需简单的添加一个值为 true 的 iframe 选项到设置了 $.ajax() 调用的 Ajax 中,然后使用 files 选项指定要包含在子控件中的文件字段,该选项可以是选择器、jQuery 对象或包含一个或多个 <input type="file"> 元素的 DOM 列表:

$("#myform").submit(function() {
    $.ajax(this.action, {
        files: $(":file", this),
        iframe: true
    }).complete(function(data) {
        console.log(data);
    });
});

该插件将构造隐藏的 <iframe><form> 元素,然后将文件字段添加到该表单,并提交表单处理响应。

本文地址:https://codercto.com/soft/d/21082.html

Algorithms for Image Processing and Computer Vision

Algorithms for Image Processing and Computer Vision

Parker, J. R. / 2010-12 / 687.00元

A cookbook of algorithms for common image processing applications Thanks to advances in computer hardware and software, algorithms have been developed that support sophisticated image processing with......一起来看看 《Algorithms for Image Processing and Computer Vision》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

随机密码生成器
随机密码生成器

多种字符组合密码