Comments (1)
在作者的基础上进行改进,弃用由定时器模拟的非实时进度条效果,改由实时的进度条显示。具体方法主要是利用jquery的ajax的xhr这个api,增加 xhr: function(){},根据$.ajaxSettings.xhr()这个对象里的loaded值来判断真正的加载进度,具体改进的源码如下链接,其对应的是该插件源码里的easyUpload.js,用Beyond Compare 3比较软件比对下代码就可以发现二者的代码差异。说到这里,其实该插件是非常轻量的,纯粹是利用ajax来进行自定义的上传插件,不过当前的插件还不够完善,因为当前还发现有两个问题:1、不支持并行多文件上传,而是串行的。2、限制的文件上传个数,使用的变量名为multiNum,与这个变量的真正含义不一致。要表达的就这么多了。如果我有时间把这两个问题也解决了,我也会提交Issues的。
from easyupload.js.
Related Issues (19)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyupload.js.