<script>
$('#file').on('change', function(e) {
console.log(e.target.files[0]);
})
</script>
<input type='file' id='file'>
Which is a file object, check this page for detail things.
<script>
$('#file').on('change', function(e) {
console.log(e.target.files[0]);
})
</script>
<input type='file' id='file'>
Which is a file object, check this page for detail things.
本文标题:Get filename in file input field
本文链接:https://www.haomeiwen.com/subject/kflplxtx.html
网友评论