ajaxfileupload.js的报错:jQuery.handleError is not a function 解决办法
来源:互联网 发布:黑暗森林威慑 知乎 编辑:程序博客网 时间:2024/05/21 07:17
handlerError只在jquery-1.4.2之前的版本中存在,jquery-1.4.2之后的版本中都没有这个函数了。因此在jquery高级版本中将这个函数添加上 ,问题解决。 该js代码段可以加在jquer.js或者ajaxfileupload.js中。
; (function ($) { jQuery.extend({ handleError: function (s, xhr, status, e) { if (s.error) { s.error.call(s.context || s, xhr, status, e); } if (s.global) { (s.context ? jQuery(s.context) : jQuery.event).trigger("ajaxError", [xhr, s, e]); } }, httpData: function (xhr, type, s) { var ct = xhr.getResponseHeader("content-type"), xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0, data = xml ? xhr.responseXML : xhr.responseText; if (xml && data.documentElement.tagName == "parsererror") throw "parsererror"; if (s && s.dataFilter) data = s.dataFilter(data, type); if (typeof data === "string") { if (type == "script") jQuery.globalEval(data); if (type == "json") data = window["eval"]("(" + data + ")"); } return data; } });});
阅读全文
0 0
- ajaxfileupload.js的报错:jQuery.handleError is not a function 解决办法
- ajaxFileUpload报错jQuery.handleError is not a function
- ajaxFileUpload报错jQuery.handleError is not a function
- ajaxfileupload.js上传文件时jQuery.handleError is not a function的 解决办法
- ajaxfileupload.js jQuery.handleError is not a function
- ajaxfileupload.js结合低版本jquery报异常:TypeError: 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
- jQuery.form Ajax无刷新上传报错 (jQuery.handleError is not a function) 解决办法
- jQuery.form Ajax无刷新上传报错 (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
- 执行ajaxFileUpload发生jQuery.handleError is not a function错误的个人解决方法
- jquery ajax图片上传 springmvc ajaxFileUpload 报这错jQuery.handleError is not a function
- jQuery.handleError is not a function
- zabbix 基于JMX监控tomcat
- LVS 工作模式以及工作原理
- python 自带urllib.request 模块简单介绍(python3.5)
- DSL(domain specific language )
- 使用sklearn做特征工程
- ajaxfileupload.js的报错:jQuery.handleError is not a function 解决办法
- easyui使用参考
- Mac OSX 安装MySQL
- CentOS6.5 上 DHCP 安装与配置
- WM_CLOSE
- 部署RTMP自测环境
- ./catalina.sh run
- sublime text3支持Vue语法高亮显示
- 微软新技术:只要普通 Webcam,混合实境马上来