$.ajaxFileUpload({
url:'${ctx}/CorpAttachmentController/upload',
secureuri:false,
fileElementId: 'file3',
dataType: 'json',
success: function (data){
var jsonData = eval("(" + data + ")");
if(jsonData.status == "success"){
$("#logo").val(jsonData.path);
saveFile2();
}else{
$("#uploadMark").html(" 上传附件");
$("#messageAlert").html("上传失败!");
$("#alertMessaage").modal("show");
}
}
});
在ie9中根本不执行,在ajaxFileUpload.js中已经加入了浏览器类型处理
if(window.ActiveXObject) {
if(jQuery.browser.version=="9.0") {
io = document.createElement('iframe');
io.id = frameId;
io.name = frameId;
} else if(jQuery.browser.version=="6.0"||jQuery.browser.version=="7.0"||jQuery.browser.version=="8.0") {
var io = document.createElement('');
if(typeof uri== 'boolean'){
io.src = 'javascript:false';
}
else if(typeof uri== 'string'){
io.src = uri;
}
}
} 已改
ie9js调试没有错误,只是跳过执行
你什么版本的jquery,jQuery.browser属性1.9+已经不支持的了,注意jquery版本
而且你跳过执行是什么意思?没有提交表单还是什么