【发布时间】:2020-04-15 02:01:55
【问题描述】:
我在 HTML 中有以下行:
<input type="file" #fileInput style="display: none" accept=".xml" (change)="OnFileSelected($event)"/>
选择文件后,将调用 OnFileSelected 回调。 但是,如果我再次选择同一个文件,则不会调用此回调。
你能帮忙吗?
【问题讨论】:
-
这看起来像是 Angular 使用的代码,而不是直接的 HTML。你可能想edit你的问题相应地更新标签。