The problem of H5 embedded in app about input:file

1. No matter how I write it, I can"t get the picture object
2. It"s going crazy!

<input type="file" onchange="upimgfun">

function upimgfun(e){
     alert(e)
     e.target.files[0]
}
<input type="file" class="upimg">

$(".upimg").change(function(e){
 alert($(this))
})

this is the code. No matter how you write it, you don"t even play it.

Feb.11,2022

you in app, make sure that the app you use supports alert. You can try to output it on the page, some dom $(). Html ()

.
Menu