ajaxFileUpload :jQuery.handleError is not a function的解决方法

来源:互联网 发布:prolink ii软件下载 编辑:程序博客网 时间:2024/06/01 08:36

jQuery.handleError is not a function 报错原因是:
handlerError只在jquery-1.4.2之前的版本中存在,jquery-1.4.2之后的版本中都没有这个函数了。
这里写图片描述
解决方法:将下面的代码复制进去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] );        }    },

这里写图片描述

0 0
原创粉丝点击