Giter VIP home page Giter VIP logo

jquery-upload's Introduction

jquery-upload spm version

AUTHOR WEBSITE: http://ydr.me/

jquery.fn.upload 单个上传、批量上传、二进制上传

五星提示:当前脚本未作优化、未完工,请勿用在生产环境

IT IS A SPM PACKAGE.

#USAGE

var $ = require('jquery');
require('jquery-upload')($);


// 普通 input:file
$('#demo').upload();

// 二进制
$('#demo').upload('blob', blob);

#OPTIONS

$.fn.upload.defaults = {
    // 留空表示提交到当前页面
    action: "",
    // 头信息
    headers: {},
    // 传递额外数据(键值对字符串)
    data: null,
    // 留空表示默认读取表单文件的name值
    name: "",
    // 完成回调,无论成功还是失败
    oncomplete: $.noop,
    // 成功回调
    onsuccess: $.noop,
    // 失败回调
    onerror: $.noop,
    // 进度回调
    onprogress: $.noop
};

jquery-upload's People

Contributors

cloudcome avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.