首页 > 解决方案 > 如何在 AngularJs 中清除输入文件 img base64?

问题描述

我正在尝试在调用提交操作后使用 img scr base64 清除输入,但输入不明确!我的html:

<div class="form-group">
    <label>Photo</label>
    <input mds-file type="file" file="mealData.img" base64="y" required>
    <img src="{{y}}" style="display: block;margin: auto">
</div>

我的控制器:

$scope.y="";
$scope.$apply();

标签: javascripthtmlangularjsinput

解决方案


推荐阅读