javascript - under ie8 jquery input file 无值
天蓬老师
天蓬老师 2017-05-19 10:16:37
0
1
742

Under IE8, use jquery1.12.4 to listen to the change event <input type="file" id="logo"/> Unable to obtain the value.


$('#logo').on('change', function () {
    var files = $(this).prop('files');
    console.log(files); // undefined
});
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
我想大声告诉你

Try this.files directly

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template