html file input onchage没有调用(两次选择同一个文件)
摘要:在html中,如果input的类型是file,且第二次选择的文件与第一次相同,那么onchange事件不会调用。 如果想调用,需要将event.target.value设置为null,如下: 原生写法: <input id="file" onchange="file_changed(this)" o
阅读全文
posted @ 2020-07-09 14:42
posted @ 2020-07-09 14:42
关注我