![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
文件上传
陈学卫的博客
做自己的一个博客
展开
-
大文件断点续传
xhr2 将图片拖拽到此 0% ajax上传--> 上传 //拖拽上传开始原创 2016-08-16 15:10:51 · 230496 阅读 · 0 评论 -
JavaScript实现拖拽预览,AJAX小文件上传
1.html中div标签预览显示,button标签触发上传事件。 将图片拖拽到此 ajax上传 2.禁止浏览器打开文件行为 document.addEventListener("drop",function(e){ //拖离 e.preventDefault(); }) document.addEv原创 2016-08-02 09:42:17 · 233568 阅读 · 0 评论 -
input标签file类型,选择多个文件进行上传
html页面 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <title>xhr2</title> </head> <body> <div style="text-alig原创 2016-07-15 16:56:12 · 236880 阅读 · 0 评论