ITeye博客

删除/添加邮箱附件

zpanda · 2015-03-24 16:43 · JavaScript · 互联网 · Markdown

  } 
  function deleteInput(){
        if(i>1){
        i=i-1;
        if(!removeInput())
            i=i+1;
      }
  } 
  
  function createInput(nm){   
    var aElement=document.createElement("input");   
    aElement.name=nm;
    aElement.id=nm;
    aElement.type="file";
    aElement.size="50";
      if(document.getElementById("upload").appendChild(aElement) == null)
          return false;
      return true;
  } 
  function removeInput(nm){
      var aElement = document.getElementById("upload");
      if(aElement.removeChild(aElement.lastChild) == null)
        return false;
      return true;   
  } 

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。