不好意思各位,犯了一个低级错误,哎,
我已经有了子节点所在的位置,直接用父节点删除就可以了,干么非的找他的位置然后再循环呀,
代码如下:function deleteCurrentRow1(nodePosition){
    var father = nodePosition.parentNode;
    var grandfather = nodePosition.parentNode.parentNode;
    grandfather.removeChild(father);
}
这样调用:<div id="upfiles">
    <div><input type="file" name="uppic" /><input type="button" onclick="deleteCurrentRow1(this)" /></div>
    <div><input type="file" name="uppic" /><input type="button" onclick="deleteCurrentRow1(this)" /></div>
    <div><input type="file" name="uppic" /><input type="button" onclick="deleteCurrentRow1(this)" /></div>
    <div><input type="file" name="uppic" /><input type="button" onclick="deleteCurrentRow1(this)" /></div>
</div>