1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>无标题文档</title>
- <link rel="stylesheet" type="text/css" href="Huploadify.css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="jquery.Huploadify.js"></script>
- <style type="text/css">
- </style>
- <script type="text/javascript">
- $(function(){
- $('#upload').Huploadify({
- auto:true,
- fileTypeExts:'*.jpg;*.png;*.exe',
- multi:true,
- formData:{key:123456,key2:'vvvv'},
- fileSizeLimit:9999,
- showUploadedPercent:true,//是否实时显示上传的百分比,如20%
- showUploadedSize:true,
- removeTimeout:9999999,
- uploader:'upload.php',
- onUploadStart:function(){
- //alert('开始上传');
- },
- onInit:function(){
- //alert('初始化');
- },
- onUploadComplete:function(){
- //alert('上传完成');
- },
- onDelete:function(file){
- console.log('删除的文件:'+file);
- console.log(file);
- }
- });
- });
- </script>
- </head>
- <body>
- <div id="upload"></div>
- </body>
- </html>
|