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://codercto.com/soft/d/21084.html

Java Message Service API Tutorial and Reference

Java Message Service API Tutorial and Reference

Hapner, Mark; Burridge, Rich; Sharma, Rahul / 2002-2 / $ 56.49

Java Message Service (JMS) represents a powerful solution for communicating between Java enterprise applications, software components, and legacy systems. In this authoritative tutorial and comprehens......一起来看看 《Java Message Service API Tutorial and Reference》 这本书的介绍吧!

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

多种字符组合密码

MD5 加密
MD5 加密

MD5 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具