jQuery 文件上传插件 AjaxFileUpload.js

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

软件介绍

jQuery.AjaxFileUpload.js是一款jQuery插件,用于通过ajax上传文件。

功能特点:

  • 它不依赖于特定的HTML,只要给它一个“<INPUTTYPE="file">

  • 它不需要你的服务器响应时指定任何特定方式

  • 可以对大批量文件进行操作

示例代码:

-- Use as little as --

    $('#one-specific-file').ajaxfileupload({
      'action': '/upload.php'
    });

-- or as much as --

    $('input[type="file"]').ajaxfileupload({
      'action': '/upload.php',
      'params': {
        'extra': 'info'
      },
      'onComplete': function(response) {
        console.log('custom handler for file:');
        alert(JSON.stringify(response));
      },
      'onStart': function() {
        if(weWantedTo) return false; // cancels upload
      },
      'onCancel': function() {
        console.log('no file selected');
      }
    });

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

Designing for Emotion

Designing for Emotion

Aarron Walter / Happy Cog / 2011-10-18 / USD 18.00

Make your users fall in love with your site via the precepts packed into this brief, charming book by MailChimp user experience design lead Aarron Walter. From classic psychology to case studies, high......一起来看看 《Designing for Emotion》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

MD5 加密
MD5 加密

MD5 加密工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试