文件名称:swfupload上传
文件大小:57KB
文件格式:ZIP
更新时间:2018-09-16 03:19:02
swfupload
var SWFUpload; if (typeof(SWFUpload) === "function") { SWFUpload.queue = {}; SWFUpload.prototype.initSettings = (function (oldInitSettings) { return function () { if (typeof(oldInitSettings) === "function") { oldInitSettings.call(this); } this.customSettings.queue_cancelled_flag = false; this.customSettings.queue_upload_count = 0; this.settings.user_upload_complete_handler = this.settings.upload_complete_handler; this.settings.upload_complete_handler = SWFUpload.queue.uploadCompleteHandler; this.settings.queue_complete_handler = this.settings.queue_complete_handler || null; }; })(SWFUpload.prototype.initSettings); SWFUpload.prototype.startUpload = function (fileID) { this.customSettings.queue_cancelled_flag = false; this.callFlash("StartUpload", false, [fileID]); }; SWFUpload.prototype.cancelQueue = function () { this.customSettings.queue_cancelled_flag = true; this.stopUpload(); var stats = this.getStats(); while (stats.files_queued > 0) { this.cancelUpload(); stats = this.getStats(); } }; SWFUpload.queue.uploadCompleteHandler = function (file) { var user_upload_complete_handler = this.settings.user_upload_complete_handler; var continueUpload; if (file.filestatus === SWFUpload.FILE_STATUS.COMPLETE) { this.customSettings.queue_upload_count++; } if (typeof(user_upload_complete_handler) === "function") { continueUpload = (user_upload_complete_handler.call(this, file) === false) ? false : true; } else { continueUpload = true; } if (continueUpload) { var stats = this.getStats(); if (stats.files_queued > 0 && this.customSettings.queue_cancelled_flag === false) { this.startUpload(); } else if (this.customSettings.queue_cancelled_flag === false) { this.queueEvent("queue_complete_handler", [this.customSettings.queue_upload_count]); this.customSettings.queue_upload_count = 0; } else { this.customSettings.queue_cancelled_flag = false; this.customSettings.queue_upload_count = 0; } } }; }
【文件预览】:
multifile-master
----docs.html(40KB)
----jquery.MultiFile.js(30KB)
----docs.js(242B)
----gruntfile.js(4KB)
----index.asp(32B)
----bower.json(462B)
----docs.css(214B)
----.travis.yml(81B)
----jQuery.MultiFile.min.js(10KB)
----LICENSE(1KB)
----test()
--------test1.js(335B)
--------index.html(3KB)
--------maxsize.html(3KB)
--------preview.html(3KB)
--------test2.js(609B)
--------test.php(342B)
--------maxfile.html(3KB)
----README.md(4KB)
----jquery.form.js(38KB)
----docs()
--------inc()
--------docs.html(37KB)
--------layout.jade(2KB)
--------docs.jade(219B)
--------docs.scss(204B)
--------analytics.html(416B)
----.gitignore(580B)
----jquery.MetaData.js(4KB)
----package.json(1KB)