上传
<div id="files">
<div>
<input type=button onclick="add();" value=Attacthment>
<script>
var html="<input name=title  type=file> <input type=button value=Delete onclick=\"remove(this)\">";
function add()
{
var o=document.all["files"];
var div=document.createElement("div");
div.innerHTML=html;
o.appendChild(div);
div.childNodes[0].click();
}
function remove(obj)
{
obj.parentElement.parentElement.removeChild(obj.parentElement);
}
</script>
 
                    
                     
                    
                 
                    
                 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号