星空网 > 软件开发 > Java

ajaxFileUpload 报这错jQuery.handleError is not a function (注:内容完全是转载,只是便于以后自己查阅)

今天刚打个一个技术群,里面有人问标题上的问题,嘿,我恰好遇过,现在大家至少也在用jquery1.9以上的版本,ajaxfileupload的版本早就不更新了,大家可以下载看:地址这里,它例子里使用的Jquery是1.2的,好老呀。。。这个问题,我以前开发过程中遇过,网上说经测试(我是没测试),是版本1.4.2之前的版本才有handlerError方法,之后就不存在了,(你存在,我深深的脑海里。。。),为了能够继续使用ajaxfileupload上传我们的附件,只好将代码拷进我们的项目中的ajaxfileupload.js文件中,如下:

 1 handleError: function( s, xhr, status, e )     { 2     // If a local callback was specified, fire it 3         if ( s.error ) { 4           s.error.call( s.context || s, xhr, status, e ); 5         } 6  7         // Fire the global callback 8         if ( s.global ) { 9           (s.context ? jQuery(s.context) : jQuery.event).trigger( "ajaxError", [xhr, s, e] );10         }11   }

原文地址: 

http://zhangzhaoaaa.iteye.com/blog/2123021




原标题:ajaxFileUpload 报这错jQuery.handleError is not a function (注:内容完全是转载,只是便于以后自己查阅)

关键词:jquery

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

桂林市空运:https://www.goluckyvip.com/tag/102817.html
包能托运吗:https://www.goluckyvip.com/tag/102818.html
什么叫158航空托运包:https://www.goluckyvip.com/tag/102819.html
包航空球托运高尔夫:https://www.goluckyvip.com/tag/102820.html
甘肃省空运:https://www.goluckyvip.com/tag/102821.html
空运物流运输:https://www.goluckyvip.com/tag/102822.html
去日本入住酒店,东西随意用却有一个特殊“要:https://www.vstour.cn/a/411241.html
中国有哪些著名的酒店品牌。:https://www.vstour.cn/a/411242.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流