文件名称:file-button:将DOM元素转换为文件输入
文件大小:68KB
文件格式:ZIP
更新时间:2024-06-06 08:43:32
javascript file-upload es5-javascript JavaScript
例子 javascript var filebutton = require('file-button'); var request = require('superagent'); filebutton .create() .on('fileinput', function(fileinput){ var req = request.post('/upload/') var files = fileinput.files; var file; for(var i = 0, len = files.length; i < len; ++i){ var file = files[i]; req.attach('ajaxfile-' + i, file, file.name); } req
【文件预览】:
file-button-master
----appstackr-settings.json(47B)
----lib()
--------support.js(790B)
--------polyfill.js(865B)
--------utils.js(3KB)
--------index.js(2KB)
----legacy.js(77B)
----.npmignore(631B)
----example()
--------public()
--------client()
--------app.js(1KB)
--------uploaded()
--------bin()
----test()
--------index.html(3KB)
--------test.min.js(40KB)
--------test.min.css(116KB)
--------mocha.min.js(58KB)
----README.md(2KB)
----stacks.js(565B)
----.gitignore(592B)
----index.js(49B)
----package.json(963B)