Under IE8, use jquery1.12.4 to listen to the change event <input type="file" id="logo"/> Unable to obtain the value.
<input type="file" id="logo"/>
$('#logo').on('change', function () { var files = $(this).prop('files'); console.log(files); // undefined });
欢迎选择我的课程,让我们一起见证您的进步~~
Try this.files directly
Try this.files directly