方法1:
<span id=span1>
<input name=ab type=file>
</span>
<input name=button1 type=button value="按" onclick=show()>
<script language=javascript>
function show()
{
document.getElementById("span1").innerHTML="<input name=ab type=file>"
}
</script>
方法2:
function clearFileInput(file){
var form=document.createElement('form')
document.body.appendChild(form)
//记住file在旧表单中的的位置
var pos=file.nextSibling
form.appendChild(file)
form.reset()
pos.parentNode.insertBefore(file,pos)
document.body.removeChild(form)
}
1、首先,在dw文件中右击需要删除的js文件。2、其次,右击菜单中选择“编辑”下的“删除”按钮。
3、最后,在弹出确认窗口中点击“是”按钮,就可以删除文件了。