84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
To implement a file upload function in the project, please tell me how to implement it through Jq
走同样的路,发现不同的人生
jquery-plugins上传-1-jq.网上这种写好的插件太多了。
uoloadify,公司项目里用了这个,建议用最新版本的,我们公司的后端非要用老版本的,结果很多东西要自己写,烦死了。uploadify,分swf和H5两个版本,H5版本是收费的,swf版本兼容性好
用base64上传
使用jquery.form.js就可以了https://github.com/jquery-for...
$('#form').ajaxSubmit({ url : '${ctx}/file/upload', data : { }, dataType : 'json', success : function(data) { }, error : function(data) { } });
<form id="form" method="post" novalidate enctype="multipart/form-data"> <input name="file" type="file" /> </form>
直接用formdata配合type为file的input标签就可以了呀
jquery-plugins上传-1-jq.网上这种写好的插件太多了。
uoloadify,公司项目里用了这个,建议用最新版本的,我们公司的后端非要用老版本的,结果很多东西要自己写,烦死了。
uploadify,分swf和H5两个版本,H5版本是收费的,swf版本兼容性好
用base64上传
使用jquery.form.js就可以了
https://github.com/jquery-for...
直接用formdata配合type为file的input标签就可以了呀