0
這是我面臨的referencequery.Fileupload的UI錯誤引發的異常,但沒有抓到
同樣的問題,它在鍍鉻細,火狐但不是在IE瀏覽器...的錯誤是「IE('拋出異常並沒有抓到)」
從參考我才知道錯誤是在對象writer.write
Java代碼」 95號線,25' 字符:(是否畸形):任何人都可以調試在此錯誤
writer.write("{\"name\":\"" + item.getName() + "\",\"type\":\"" + item.getContentType() + "\",\"size\":\"" + item.getSize() + "\",\"filepath\":\"" + tp2 + "\"}");
JS:
$(function() {
var initFileUpload = function (suffix) {
$('#file_upload').fileUploadUI({
namespace: 'file_upload_' + suffix,
fileInputFilter: '#file_' + suffix,
dropZone: $('#drop_zone_' + suffix),
uploadTable: $('#files_' + suffix),
downloadTable: $('.display-frame'),
buildUploadRow: function (files, index) {
return $('<tr><td>' + files[index].name
+ '<td class="file_upload_cancel">' + '<button class="ui-state-default ui-corner-all" title="Cancel">' + '<span class="ui-icon ui-icon-cancel">Cancel<\/span>' + '<\/button><\/td><\/tr>');
},
buildDownloadRow: function (file) {
// return $('<tr><td>' + file.name + file.filepath +'<\/td><\/tr>');
var path = '<div class="picthumb" id="pic" url="' + file.filepath + '" onclick="clickpick(this)"><div class="mainpic"><img src="';
path += file.filepath + '" class="uploader-thumb-img" style="width: 108px; height: 120px; top: 0px; left: 0px; "/></div></div>';
return $(path);
}
});
};
initFileUpload(1);
});
誤差IE是示出的回調()
if (typeof callBack === func) {
try {
callBack();
} catch (e) {
// Fix endless exception loop:
$(this).stop();
throw e;
}
}
我發現錯誤是defintely w對象編寫者通過對其進行硬編碼而出現故障 – 2012-07-25 09:44:29