1. 也只能用 reset form  了。
2. \ 是JS里的转义符, "\" JS会认为是 "  +  \",所以你要用ss=s.split("\\")

解决方案 »

  1.   

    <script>  
      function  cls(){
            xxx.focus();
            document.execCommand("selectall");
            document.execCommand("Delete");
      }
      </script>  
      
      <input  type=file  name=xxx>  
      <input  type=button  onclick="cls()"  value=清除>  
      

  2.   

    <script>  
      function  cls(){
            xxx.select();
            document.execCommand("delete");
      }
      </script>  
      
      <input  type=file  name=xxx>  
      <input  type=button  onclick="cls()"  value=清除>