zoukankan      html  css  js  c++  java
  • ajaxFileUpload 报这错jQuery.handleError is not a function

        jQuery-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.     }  这样,就可以用了
  • 相关阅读:
    堆排序算法
    二叉树的创建、遍历(递归和非递归实现)、交换左右子数、求高度(c++实现)
    hdoj1010 奇偶剪枝+DFS
    常见排序算法c++总结
    B
    C
    D
    E
    G
    F
  • 原文地址:https://www.cnblogs.com/womanwolf/p/5682383.html
Copyright © 2011-2022 走看看