<div id="org"></div>
<input type="button" onclick="add1();" value="添加" />
script
<script type="text/javascript">
function add1(){
var input1 = document.createElement('input');
input1.setAttribute('type', 'file');
input1.setAttribute('name', 'file[]');
var input2 = document.createElement('input');
input2.setAttribute('type', 'text');
input2.setAttribute('name', 'depict[]');
var btn1 = document.getElementById("org");
btn1.insertBefore(input1,null);
btn1.insertBefore(input2,null);
}
</script>
<input type="button" onclick="add1();" value="添加" />
script
<script type="text/javascript">
function add1(){
var input1 = document.createElement('input');
input1.setAttribute('type', 'file');
input1.setAttribute('name', 'file[]');
var input2 = document.createElement('input');
input2.setAttribute('type', 'text');
input2.setAttribute('name', 'depict[]');
var btn1 = document.getElementById("org");
btn1.insertBefore(input1,null);
btn1.insertBefore(input2,null);
}
</script>