ajaxFileUpload 报这错jQuery.handleError is not a function
来源:互联网 发布:葡萄牙 欧洲杯 知乎 编辑:程序博客网 时间:2024/05/21 12:09
现在大家至少也在用jquery1.9以上的版本,ajaxfileupload的版本早就不更新了,大家可以下载看:地址这里,它例子里使用的Jquery是1.2的,好老呀。。。这个问题,我以前开发过程中遇过,网上说经测试(我是没测试),是版本1.4.2之前的版本才有handlerError方法,之后就不存在了,(你存在,我深深的脑海里。。。),为了能够继续使用ajaxfileupload上传我们的附件,只好将代码拷进我们的项目中的ajaxfileupload.js文件中,如下:
handleError: function( s, xhr, status, e ) { // If a local callback was specified, fire it if ( s.error ) { s.error.call( s.context || s, xhr, status, e ); } // Fire the global callback if ( s.global ) { (s.context ? jQuery(s.context) : jQuery.event).trigger( "ajaxError", [xhr, s, e] ); } }
例子
$('#tjbut').click(function(){var uuid=$('.modal').attr('data-index');remark=$('#spmess').val(), fileys = $('#fileys').get(0).files[0]; $.ajaxFileUpload ( { url: './mqComet/mqMsg.do?method=msgCommit', //用于文件上传的服务器端请求地址 secureuri: false, //是否需要安全协议,一般设置为false fileElementId: 'fileys', //文件上传域的ID dataType: 'json', //返回值类型 一般设置为json data : {uuid:uuid,remark:remark}, success: function (data, status) //服务器成功响应处理函数 { if(data.isOk){ $('.modal').hide(); } }, error: function (data, status, e)//服务器响应失败处理函数 { alert(e); } } ) return false; })
0 0
- ajaxFileUpload 报这错jQuery.handleError is not a function
- ajaxFileUpload 报这错jQuery.handleError is not a function
- 【转载】ajaxFileUpload 报这错jQuery.handleError is not a function
- 引用(ajaxfileupload.js) ajaxfileupload.js报这错jQuery.handleError is not a function
- 引用(ajaxfileupload.js) ajaxfileupload.js报这错jQuery.handleError is not a function
- 引用(ajaxfileupload.js) ajaxfileupload.js报这错jQuery.handleError is not a function
- ajaxfileupload.js jQuery.handleError is not a function
- ajaxFileUpload报错jQuery.handleError is not a function
- ajaxFileUpload :jQuery.handleError is not a function的解决方法
- ajaxFileUpload报错jQuery.handleError is not a function
- jquery ajax图片上传 springmvc ajaxFileUpload 报这错jQuery.handleError is not a function
- ajaxfileupload.js结合低版本jquery报异常:TypeError: jQuery.handleError is not a function
- jQuery.handleError is not a function
- 执行ajaxFileUpload发生jQuery.handleError is not a function错误的个人解决方法
- ajaxfileupload.js上传文件时jQuery.handleError is not a function的 解决办法
- ajaxfileupload上传文件dataType为json时报jQuery.handleError is not a function
- ajaxfileupload.js的报错:jQuery.handleError is not a function 解决办法
- $.handleError is not a function
- Android studio assets error:前言中不允许有内容
- 1014 Uniform Generator
- 【Git学习】git常用命令
- 谷歌市场应用的多apk发布(减小apk的大小)
- java synchronized详解
- ajaxFileUpload 报这错jQuery.handleError is not a function
- 女子借万元逾期未还遭拘禁被活埋
- Get请求,参数的最大长度是多少?
- 4-10 记第一面试。。
- Linux系统CentOS6.2版本下安装JDK7详细过程
- 优化 | 再用传统分页SQL你就死定了
- CSS3自定义滚动条样式 -webkit-scrollbar
- Linux rpm安装MySQL
- 多选框的判断