使用Jquery开源插件实现文件上传(带进度条)
来源:互联网 发布:获取局域网mac地址命令 编辑:程序博客网 时间:2024/05/20 15:59
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><html> <head> <title>test</title> <style type="text/css"> #progress{width:90%;margin:5%;} </style> <meta charset="utf-8"> <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" /><script type="text/javascript" src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript" src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script> <script src="style/upload/js/vendor/jquery.ui.widget.js"></script> <script src="style/upload/js/jquery.iframe-transport.js"></script> <script src="style/upload/js/jquery.fileupload.js"></script> </head> <body> <input id="fileupload" type="file" name="image" data-url="admin/UploadImage.do"> <progress id="progress" value="0" max="100"></progress> <script> $(function () { p = $("#progress"); $('#fileupload').fileupload({ dataType: 'json', progressall: function (e, data) { var progress = parseInt(data.loaded / data.total * 100, 10); p.val(progress); }, done: function(e, data) { alert("上传成功"); } }); }); </script> </body></html>
0 0
- 使用Jquery开源插件实现文件上传(带进度条)
- jQuery file upload实现异步文件上传(带进度条)
- 用JQuery上传插件Uploadify实现带进度条无刷新多文件上传
- 使用servlet实现简易上传文件(带进度条版本)
- jquery ajax实现上传文件代码,带进度条
- jquery ajax实现上传文件代码,带进度条
- 使用Java、Jquery、Ajax实现的带进度条的文件上传。
- 【jQuery】Jquery.form.js实现表单异步提交以及文件上传(带进度条)
- Struts2+JQuery.uploadify插件实现带进度的多文件上传示例【也可以设置去掉进度条的显示】
- jQuery file upload实现异步文件上传(带进度条)转载
- 新鲜出炉:基于HTML5的jquery文件上传插件(多文件选择、带进度条、完整可用)
- 使用IHttpAsyncHandler实现带进度条的文件上传
- jquery-file-upload 文件上传,带进度条
- 带进度条的文件上传jquery
- Ajax实现文件上传(使用jQuery插件之ajaxFileUpload)
- asp.net实现文件上传带进度条(多种风格)
- asp.net实现文件上传带进度条(多种风格)
- asp.net实现文件上传带进度条(多种风格)
- Oracle高级查询
- 数组赋值
- HTML/CSS基础篇
- 山东大学电子设计与飞思卡尔协会培训1——51单片机
- 初识linux设备驱动开发
- 使用Jquery开源插件实现文件上传(带进度条)
- 四.Contiki之Protothread机制
- 洛谷 P1137 旅行计划
- 不要给真理, 要给解决方案!
- hdu 5980 Find Small A
- NO.4 鼠标的绘图操作
- JSTL标签库
- Coding和Git的环境搭建
- 1051. 复数乘法 (15)