我是Angular 6的新手。我知道这可能很愚蠢,但我没有得到任何解决方案。我想在单击文本字段中的浏览图像时打开文件对话框。这是我尝试过的。
<div class="boxed">
<div class="input-group">
<input id="spFile" class="form-control" name="spFile">
<img src="../../../../../assets/images/maps/Browse.png" type= "file" width="40" height="40" style=" position: absolute; top: 1px; right: 1px" aria-hidden="true"/>
</div>
</div>
如何轻松地打开文件对话框?