其实很简单的我这里就有一个
var count=1;
function addFile()
{
count++;
var row=count+".";
     var str = '<br>'+row+'<INPUT type="file" size="45" NAME="File">'
     document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str)
}
<table id="FileTable" cellSpacing="0" borderColorDark="#ffffff" cellPadding="0" width="100%"
borderColorLight="#000000" border="1" frame="border">
<TBODY>
<tr>
<td>
<div>
<div><input onclick="addFile()" type="button" value="增 加"></div>
<P id="MyFile">1.<INPUT type="file" size="45" name="File"></P>
</div>
<P align="center"><input type="submit" name="UploadButton" value="开始上传" id="UploadButton" /></P>
</td>
</tr>
</TBODY>
</table>