本文实例分享了原生JS版和jQuery 版实现文件上传功能的例子,供大家参考,具体内容如下
<!doctype html>
<html lang=zh>
<head>
<meta charset=utf-8>
<title>HTML5 Ajax Uploader</title>
[removed][removed]
</head>
<body>
<p><input type=file id=upfile></p>
<p><input type=button id=upJS value=用原生JS上传></p>
<p