1 Star 0 Fork 34

woerwin / fcup

forked from 封尘 / fcup 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jquery文件分段上传插件-fcup</title>
<!-- 引入css -->
<link href="./fcup/css/style.css" rel="stylesheet" />
</head>
<body>
<div class="fcup"></div>
</body>
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<!-- 引入js -->
<script src="./fcup/js/jquery.fcup.min.js"></script>
<script>
$.fcup({
updom: '.fcup',//上传控件的位置dom
//upid: 'upid',//上传的文件表单id,有默认
shardsize : '0.5',//切片大小,(单次上传最大值)单位M,默认2M
upstr: '上传文件',//按钮文字
uploading: '上传中...',//上传中的提示文字
upfinished: '上传完成',//上传完成后的提示文字
upurl: './php/file.php',//文件上传接口 node接口:http://127.0.0.1:8888/upload
//uptype: 'jpg,png,gif,jpeg',//上传类型检测,用,号分割
errtype: '不支持此类型文件',//不支持类型的提示文字
//接口返回结果回调
upcallback : function(result){
console.log(result);
}
});
</script>
</body>
</html>
JavaScript
1
https://gitee.com/woerwin/fcup.git
git@gitee.com:woerwin/fcup.git
woerwin
fcup
fcup
master

搜索帮助