1. 程式人生 > >解決ajaxfileupload外掛在IE10以下不相容的問題

解決ajaxfileupload外掛在IE10以下不相容的問題

在ajaxfileupload.js中找到 if(window.ActiveXObject) {  ****}替換為 if(window.ActiveXObject) {  
                if($.support.leadingWhitespace){  
                     var io = document.createElement('iframe');  
                     io.id = frameId;  
                     io.name = frameId;  
                 }else{  
                     var io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />');  
                     if(typeof uri== 'boolean'){  
                         io.src = 'javascript:false';  
                     }  
                     else if(typeof uri== 'string'){  
                         io.src = uri;  
                     }  
                 }  
             }