设置accpt=“image/*”
例子: <input style='display:none' type="file" accept="image/*" name="icon" #iconPicture (change)="upFile($event, category)">
设置accpt=“image/*”
例子: <input style='display:none' type="file" accept="image/*" name="icon" #iconPicture (change)="upFile($event, category)">
转载于:https://www.cnblogs.com/leileilei/p/9574793.html