jquery upload怎么加入网页中实现文件上传
展开全部
要先下载相应的css和js文件
<html>
<head>
<link href="uploadfile.css" rel="stylesheet">
<script src="jquery.min.js"></script>
<script src="jquery.uploadfile.min.js"></script>
</head>
<body>
<div id="fileuploader">Upload</div>
<script>
$(document).ready(function() {
$("#fileuploader").uploadFile({
url:"http://hayageek.com/examples/jquery/ajax-multiple-file-upload/upload.php",
fileName:"myfile"
});
});
</script>
</body>
</html>
<html>
<head>
<link href="uploadfile.css" rel="stylesheet">
<script src="jquery.min.js"></script>
<script src="jquery.uploadfile.min.js"></script>
</head>
<body>
<div id="fileuploader">Upload</div>
<script>
$(document).ready(function() {
$("#fileuploader").uploadFile({
url:"http://hayageek.com/examples/jquery/ajax-multiple-file-upload/upload.php",
fileName:"myfile"
});
});
</script>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询