当前位置:首页 >> 网络编程

清空上传控件input file的值

复制代码 代码如下:
var obj=网页中的<input type="file" />
obj.outerHTML = obj.outerHTML.replace(/(value=\").+\"/i, "$1\"");