删除file控件的内容

xiaoxiao2026-04-15  5

删除file控件的内容: <s:file id="channel" name="channel" value="文件上传"></s:file><input type="button" value="清空" onclick="channel.select();document.execCommand('delete')"> 其中οnclick="channel.select();document.execCommand('delete')"中的channel为对应file控件的id;
转载请注明原文地址: https://www.6miu.com/read-5047406.html

最新回复(0)