javascript - 如何在 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();
解决方案
推荐阅读
- django - Django 博客 post_update 功能未按预期工作
- python - 如何在 vscode 上使用 Python 扩展在运行时调试?
- python - 访问字典中的部分值
- screenshot - 无法制作 gnome-screenshot 以将选定区域复制到 Fedora 32 上的剪贴板
- javascript - 有没有可能从xml读取每个节点
- node.js - 快速路由调用一个类
- r - 基于R中的函数在数据表中重复行
- javascript - 为什么我会收到一般的“TypeError:无法获取”错误?
- c# - HttpPostedFileBase 丢失 ContentLength
- php - 如何显示空星或半星?