附件上传问题,显示问题,
//加载上传的图片信息
waf.doPost({
success:function(data) {
var count1 = $(".ui-fileupload-addFile").length;
for(var i=0 ; i < count1 ; i++){
//先清空
waf("#panel"+i).find("img").remove();
var imgList = document.getElementById("webAttachment"+i+"_upload").getElementsByClassName('file-view');
if(imgList && imgList.length > 0){
for (var j = 0 ; j<imgList.length ; j++){
var url = imgList[j].href;
if(!url) continue;
if(url.indexOf("viewpic.jsp")>=0){
url = url.replace("viewpic.jsp","view.jsp");
}
var imgObject = "<img id='contractImg"+j+"' ctrlrole='img' data-domcreated='true' src=" + url
+ " width='200' height='200' style='position:relative;top:0px;right:0px;padding:2px' >";
waf("#panel"+i).append(imgObject);
}
}
}
}
});
推荐阅读