Jquery文件上传插件进度条 [英] Jquery File Upload Plugin Progress Bar

查看:195
本文介绍了Jquery文件上传插件进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此插件管理网页上的文件上传,并可添加大量上传过程的UI元素。

This plugin manages file uploads in a webpage and can add a lot of UI elements to the upload process.

您创建一个输入文件类型元素,然后绑定js文件,使用实例化代码和walla。有完成不同功能的选项和API说明。

You create an input file type element and then strap the js files, use the instantiating code and walla. There are options and API instructions for accomplishing different features.

问题:

我想实现文件上传的进度条,但到目前为止还没有关于如何在文档中执行此操作的真实说明。

I want to implement a progress bar for file uploads but so far there is no real instruction on how to do that in the docs.

我找到了一个可以设置的选项粘贴此代码:

I found one option you can set by pasting this code in:

progress: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10); }

但这样做并没有改变任何东西。有人了解javascript请帮我看看如何实现进度条?

But doing that it has not changed anything. Can someone who understands javascript please help me find out how to get a progress bar implemented?

谢谢。

推荐答案

好的,与程序员交谈后对于Github上的插件,他在文档中添加了一个部分,其中包含了实现基本设置进度条的说明。

Okay, after talking to the programmer for the plugin on Github he has added a section in the docs to include instructions for implementing a progress bar for the basic setup.

我和他之间的对话就在这里: https://github.com/blueimp/jQuery-File-Upload / issues / 1451#issuecomment-6869829

The convo between me and him is here: https://github.com/blueimp/jQuery-File-Upload/issues/1451#issuecomment-6869829

文档中的解决方案如下: https://github.com/blueimp/jQuery-File-Upload/wiki/Basic-plugin

The solution in the docs is here: https://github.com/blueimp/jQuery-File-Upload/wiki/Basic-plugin

这篇关于Jquery文件上传插件进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆