下载文件后如何清除输入文件 [英] How to clear my input file after downloading my file
本文介绍了下载文件后如何清除输入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
i想在我下载文件后清除我的输入文件
< b>我尝试了什么:
我在我的控制器中使用了这个指令(angularJS)它清除了输入但它没有考虑到我的验证客户端(如果文件是cvs或xls)
我用指令制作
var control = $(#myInput );
control.replaceWith(control = control.clone(true));
hello,
i want to clear my input file after i have downloading my file
What I have tried:
I have use this instruction in my controler(angularJS) it clear the input but it does not take into consideration my verification client side (if the file is cvs or xls)
wich i make it with directive
var control = $("#myInput");
control.replaceWith(control = control.clone( true ));
推荐答案
(#myInput);
control.replaceWith(control = control.clone(true));
("#myInput");
control.replaceWith(control = control.clone( true ));
这篇关于下载文件后如何清除输入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文