<script>
function newimage(obj) {
   a = new Image();
   var objectURL = window.URL.createObjectURL(obj.files[0]);
   var img= document.getElementById('img')
 img.src = objectURL;
    a.src = objectURL;

 img.onload=function (){
  alert(img.width)
 }

 

}
</script>

<input >

相关文章:

  • 2022-01-03
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-16
  • 2021-09-28
  • 2021-10-04
  • 2021-10-27
  • 2021-11-25
相关资源
相似解决方案