基于bootstrap的文件上传控件-bootstrap-fileinput
来源:互联网 发布:中国网络空间安全协会 编辑:程序博客网 时间:2024/05/20 10:20
github地址:https://github.com/kartik-v/bootstrap-fileinput
官网:http://plugins.krajee.com/file-input
1.下载压缩文件.
2.导入文件
bootstrap-fileinput/css/fileinput.min.css
bootstrap-fileinput/js/fileinput.min.js
如果需要考虑中文化,那么还需要引入文件:
bootstrap-fileinput/js/fileinput_locale_zh.js
<link type="text/css"rel="stylesheet"href="${ctx}/components/fileinput/css/fileinput.css" /><script type="text/javascript" src="${ctx}/components/fileinput/js/fileinput.js"></script><script type="text/javascript" src="${ctx}/components/fileinput/js/fileinput_locale_zh.js"></script><body><input type="file" name="image" class="projectfile" value="image.png"/><!--1. type=file和class=projectfile,指明其为input file类型。 2. name指定其在后台的获取key。 3. value指定其在展示的时候图片路径。--></body><script> control.fileinput({ language: 'zh', //设置语言 uploadUrl: uploadUrl, //上传的地址 allowedFileExtensions : ['jpg', 'png','gif'],//接收的文件后缀 showUpload: false, //是否显示上传按钮 showCaption: false,//是否显示标题 browseClass: "btn btn-primary", //按钮样式 previewFileIcon: "<i class='glyphicon glyphicon-king'></i>", });</script>
0 0
- 基于bootstrap的文件上传控件-bootstrap-fileinput
- bootstrap fileinput 文件上传
- Bootstrap Fileinput文件上传
- bootstrap fileinput 文件上传工具
- bootstrap fileinput 文件上传工具
- 文件上传组件bootstrap fileinput
- Bootstrap文件上传组件:bootstrap fileinput
- Bootstrap文件上传组件:Bootstrap fileinput
- Bootstrap文件上传组件:bootstrap fileinput
- 支持多文件上传,预览,拖拽,基于bootstrap的上传插件fileinput的ajax异步上传
- 支持多文件上传,预览,拖拽的基于bootstrap的上传插件fileinput
- Bootstrap-fileinput控件的使用
- Bootstrap fileinput的图片上传 java框架基于springMVC
- Bootstrap的fileinput插件实现多文件上传的方法
- Bootstrap fileinput.js,最好用的文件上传组件
- php 应用 bootstrap-fileinput 上传文件 插件 操作的方法
- Bootstrap fileinput.js,最好用的文件上传组件
- SpringMVC实现多文件上传+bootstrap fileinput的使用
- C# 多线程、异步编程与并发服务器
- 代码敲累了就来写《创业计划书》吧
- LeetCode 3.Longest Substring Without Repeating Characters
- [读书笔记]程序员的自我修养 chp13 一个简单的CRT 运行库实现
- 在windows下配置R-CNN detection selective_search_ijcv_with_python目标检测
- 基于bootstrap的文件上传控件-bootstrap-fileinput
- Zookeeper(一)分布式事务
- SPOJ130 【DP·背包选取特性】
- PowerQuery的参数表格用法
- 总结71+1
- js中闭包问题
- 网络规划总结
- BZOJ 1076 [SCOI2008]奖励关
- vtk程序的cmake两种方法