jquery.uploadify.min.js报Uncaught TypeError:Cannot set property ‘uploadif
前几天要求实现多文件上传效果,查了好多资料就决定用uploadifu插件,结果部署好了以后,页面没有效果,而且js报错,下面是我jsp上的代码,求大神
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<script type="text/javascript" src="<%=path%>/daily/uploadify/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="<%=path%>/daily/uploadify/jquery.uploadify.min.js"></script>
<script type="text/javascript" src="<%=path%>/daily/uploadify/swfobject.js"></script>
<link rel="stylesheet" type="text/css" href="<%=path%>/daily/uploadify/uploadify.css"/>
<script type="text/javascript">
$(function(){
//上传
$("#uploadify").uploadify({
//开启自动调试
'auto' : false, //是否自动上传
'swf' : '/budget/WebRoot/daily/uploadify/uploadify.swf', //引入uploadify.swf
'uploader' : '<%=path%>/sysFile.do?method=create', //请求路径
//'queueID' : 'fileQueue', //队列id,用来展示上传进度的
'fileTypeDesc' : '所有文件', //可选择文件类型说明
'fileTypeExts' : '*.*', //控制可上传文件的扩展名
'multi' : true, //允许多文件上传
'buttonText' : '浏览', //按钮上的文字
'fileSizeLimit' : '5MB', //设置单个文件大小限制
'fileObjName' : 'uploadify', //<input type="file"/>的name
'method' : 'post',
//所有文件上传完成
'onQueueComplete' : function(queueData){
alert("文件上传成功!");
},
});
});
<form name="form1" method="post" action="/sysFile.do?method=create">
<input type="file" name="uploadify" id="uploadify" size="40" />
</form>