$("#headIDCard").change(function(){

var objUrl = getObjectURL(this.files[0]) ;

if (objUrl) {

$("#imgheadIDCard").attr("src",objUrl) ;

}

}) ;

   

   

   

   

function getObjectURL(file) {

var url = null ;

if (window.createObjectURL!=undefined) {

url = window.createObjectURL(file) ;

} else if (window.URL!=undefined) {

url = window.URL.createObjectURL(file) ;

} else if (window.webkitURL!=undefined) {

url = window.webkitURL.createObjectURL(file) ;

}

return url ;

}

   

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2021-10-01
  • 2022-01-01
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2020-06-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2021-11-09
  • 2021-12-10
  • 2022-12-23
相关资源
相似解决方案