html中的input type="file"类型内容清空

①file.outerHTML = file.outerHTML;

②file.createTextRange().execCommand("delete");
建议用①

你可能感兴趣的:(一句话知识积累)