js预览本地图片(根据路径)

PreviewImg(obj.PhotoPath+cardId+".bmp");
	$("#personcardimage").show();


function PreviewImg(imgFile){  
	//alert(imgFile)
    document.getElementById("personcardimage").style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod = scale)";   
    document.getElementById("personcardimage").filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgFile;
  
   
}

 

你可能感兴趣的:(js)